[Buildroot] [PATCH 3/3] slang: use specific build and install commands for static builds
Vicente Olivert Riera
Vincent.Riera at imgtec.com
Tue Dec 9 11:51:21 UTC 2014
Doing this we ensure that only the static library and a static version
of slsh are built.
Fixes:
http://autobuild.buildroot.net/results/f12/f124ca3737baf5aca32029226805133d3544715c/
Signed-off-by: Vicente Olivert Riera <Vincent.Riera at imgtec.com>
Reviewed-by: Markos Chandras <Markos.Chandras at imgtec.com>
---
package/slang/slang.mk | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/package/slang/slang.mk b/package/slang/slang.mk
index 15b65b3..4dc9ad7 100644
--- a/package/slang/slang.mk
+++ b/package/slang/slang.mk
@@ -48,4 +48,10 @@ ifeq ($(BR2_PACKAGE_READLINE),y)
SLANG_DEPENDENCIES += readline
endif
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+ SLANG_MAKE_OPTS = static
+ SLANG_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-static
+ SLANG_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-static
+endif
+
$(eval $(autotools-package))
--
1.7.1
More information about the buildroot
mailing list