summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>2014-03-24 14:38:11 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2014-03-26 21:41:23 (GMT)
commit510ffcd66bdb74627ae7f76b3d1c7e7676c729cf (patch)
tree7845db02da2f7eaf1e3811561b71334b5e013f3a
parentb7090a24d193c63adb259364c98263b0823b0643 (diff)
downloadbuildroot-510ffcd66bdb74627ae7f76b3d1c7e7676c729cf.tar.gz
buildroot-510ffcd66bdb74627ae7f76b3d1c7e7676c729cf.tar.bz2
cifs-utils: fix building on static
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>
-rw-r--r--package/cifs-utils/cifs-utils.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/cifs-utils/cifs-utils.mk b/package/cifs-utils/cifs-utils.mk
index 409ea53..3f4c71a 100644
--- a/package/cifs-utils/cifs-utils.mk
+++ b/package/cifs-utils/cifs-utils.mk
@@ -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