summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2018-03-01 18:52:19 +0000
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2018-03-01 18:52:19 +0000
commitcef9840613e4f8fcf777df0ac10dfcdd7cefb8f5 (patch)
tree1e7fee43a113c6405dd8c7e2ea3ebede02b75a93 /Rules.mak
parentb1d3d3307a3f36af6a3bfedb63e2f424517798d9 (diff)
fix issue with LDSO_GNU_HASH_SUPPORT
Under Fedora 27 there is a problem with the existing ld check. Binutils ld segfaults. Add a glibc compat macro to complete the build on Fedora. Signed-off-by: Sven Anders <anders@anduras.de>
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak5
1 files changed, 3 insertions, 2 deletions
diff --git a/Rules.mak b/Rules.mak
index 3edcd8146..db683cf68 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -195,8 +195,9 @@ check_as=$(shell \
if $(CC) -Wa,$(1) -Wa,-Z -c -o /dev/null -xassembler /dev/null > /dev/null 2>&1; \
then echo "-Wa,$(1)"; fi)
check_ld=$(shell \
- if $(CC) $(LDFLAG-fuse-ld) $(CFLAG_-Wl--no-warn-mismatch) -Wl,$(1) $(CFLAG_-nostdlib) -o /dev/null -Wl,-b,binary /dev/null > /dev/null 2>&1; \
- then echo "$(1)"; fi)
+ tf="/tmp/clducl$$$$.c"; echo "int _start(){return 0;}int main(){return 0;}" >$$tf; \
+ if $(CC) $(LDFLAG-fuse-ld) $(CFLAG_-Wl--no-warn-mismatch) -Wl,$(1) $(CFLAG_-nostdlib) -o /dev/null $$tf > /dev/null 2>&1; \
+ then echo "$(1)"; fi; rm -f $$tf )
# Use variable indirection here so that we can have variable
# names with fun chars in them like equal signs