cifs-utils: fix building on static
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Mon, 24 Mar 2014 14:38:11 +0000 (14:38 +0000)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 26 Mar 2014 21:41:23 +0000 (22:41 +0100)
Disable position independent executables when building on static.

Fixes:
   http://autobuild.buildroot.net/results/bb0/bb00db98477f0f81c95ac1830ef3649b30963416/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/cifs-utils/cifs-utils.mk

index 409ea533d430f1d6fbf8ac5c0aa44a6767b011c4..3f4c71a84af72fc8e66ac9018286a7056247d81f 100644 (file)
@@ -10,6 +10,10 @@ CIFS_UTILS_SITE    = http://ftp.samba.org/pub/linux-cifs/cifs-utils
 CIFS_UTILS_LICENSE = GPLv3+
 CIFS_UTILS_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+CIFS_UTILS_CONF_OPT += --disable-pie
+endif
+
 define CIFS_UTILS_NO_WERROR
        $(SED) 's/-Werror//' $(@D)/Makefile.in
 endef