summaryrefslogtreecommitdiff
path: root/package/libmemcached
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-07-11 16:35:14 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-07-24 21:44:22 +0200
commit3c93901bcd2f77232581ca82a3a5f741aa9e6345 (patch)
tree63d3b509fa5ecae56f17772fdd034ab7318dc96a /package/libmemcached
parent58b573c252139c6e6ec7a14964ed6810502aaf23 (diff)
toolchain: add hidden symbol for PIE support
uClibc-ng does not support PIE for some architectures as arc and m68k. It isn't implemented in the static linking case, too. With musl toolchains you might have static PIE support with little patching of gcc. Static linking for GNU libc isn't enabled in buildroot. Fixup any package using special treatment of PIE. (grep -ir pie package/*/*.mk) Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> [Thomas: use positive logic.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libmemcached')
-rw-r--r--package/libmemcached/libmemcached.mk4
1 files changed, 1 insertions, 3 deletions
diff --git a/package/libmemcached/libmemcached.mk b/package/libmemcached/libmemcached.mk
index a5ea4f5d3..36d091396 100644
--- a/package/libmemcached/libmemcached.mk
+++ b/package/libmemcached/libmemcached.mk
@@ -18,9 +18,7 @@ LIBMEMCACHED_AUTORECONF = YES
LIBMEMCACHED_LICENSE = BSD-3c
LIBMEMCACHED_LICENSE_FILES = COPYING
-# Help libmemcached to understand that -fPIE and -pie should not be
-# used when linking statically.
-ifeq ($(BR2_STATIC_LIBS),y)
+ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
LIBMEMCACHED_CONF_ENV += \
ax_cv_check_cflags__Werror__fPIE=no \
ax_cv_check_cflags__Werror__pie=no \