[Buildroot] [PATCH] package/swig: create a symlink for swig3.0
yegorslists at googlemail.com
yegorslists at googlemail.com
Mon Feb 24 10:12:52 UTC 2020
From: Yegor Yefremov <yegorslists at googlemail.com>
For now swig package creates a symlink to the latest swig version
i.e. swig4.0. If the host already has both CMake 3.10 and earlier
swig version then the earlier version (swig2.0 or swig3.0) will
be detected. This happens because CMake 3.10 doesn't know about
swig4.0 and thus searches for swig3.0 first and finds it on the
host.
With the new symlink CMake will find buildroot's swig binary.
Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
---
package/swig/swig.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/swig/swig.mk b/package/swig/swig.mk
index 3dba3425cf..5881a0e423 100644
--- a/package/swig/swig.mk
+++ b/package/swig/swig.mk
@@ -27,6 +27,7 @@ SWIG_LICENSE_FILES = LICENSE LICENSE-GPL LICENSE-UNIVERSITIES
define HOST_SWIG_INSTALL_SYMLINK
ln -fs swig $(HOST_DIR)/bin/swig$(SWIG_VERSION_MAJOR)
+ ln -fs swig $(HOST_DIR)/bin/swig3.0
endef
HOST_SWIG_POST_INSTALL_HOOKS += HOST_SWIG_INSTALL_SYMLINK
--
2.17.0
More information about the buildroot
mailing list