slang: use specific build and install commands for static builds
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Tue, 9 Dec 2014 11:51:21 +0000 (11:51 +0000)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 9 Dec 2014 19:19:58 +0000 (20:19 +0100)
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@imgtec.com>
Reviewed-by: Markos Chandras <Markos.Chandras@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/slang/slang.mk

index 15b65b36340fbbedefb64c2b00e80bb5427b8310..4dc9ad75396de6640294a183f2d4bcb16f88a6f0 100644 (file)
@@ -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))