e2fsprogs: Disable elf shared library when BR2_PREFER_STATIC_LIB is selected.
authorSonic Zhang <sonic.zhang@analog.com>
Mon, 25 Nov 2013 06:29:45 +0000 (14:29 +0800)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 25 Nov 2013 09:06:53 +0000 (10:06 +0100)
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/e2fsprogs/e2fsprogs.mk

index 0670c747cdaf39a5a7f9032d3ed37ab40ba539f6..cdca9062abde3a5967f2b56641d047ab848d5c33 100644 (file)
@@ -11,7 +11,7 @@ E2FSPROGS_LICENSE_FILES = COPYING lib/uuid/COPYING lib/ss/mit-sipb-copyright.h l
 
 E2FSPROGS_CONF_OPT = \
        --disable-tls \
-       --enable-elf-shlibs \
+       $(if $(BR2_PREFER_STATIC_LIB),,--enable-elf-shlibs) \
        $(if $(BR2_PACKAGE_E2FSPROGS_DEBUGFS),,--disable-debugfs) \
        $(if $(BR2_PACKAGE_E2FSPROGS_E2IMAGE),,--disable-imager) \
        $(if $(BR2_PACKAGE_E2FSPROGS_E4DEFRAG),,--disable-defrag) \