summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-24 21:05:18 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-24 21:05:18 +0200
commit0842c5e85ab2b049af7b44ce2196362bdce80c97 (patch)
treebb36a75953efd2b3c3e6a80b51095beb0cb6c069
parentfd2c9fee9ca6c6452baed86ed61b03cdea5f8628 (diff)
Fix taking LDFLAGS into account
* Makefile.am (clib-routines.o): Add $(LDFLAGS) to link command.
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index ff23c32f..67252db8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -175,7 +175,7 @@ MOSTLYCLEANFILES += gnumach-undef-bad
clib-routines.o: gnumach-undef gnumach-undef-bad
$(AM_V_at) if test -s gnumach-undef-bad; \
then cat gnumach-undef-bad; exit 2; else true; fi
- $(AM_V_CCLD) $(CCLD) -nostdlib -nostartfiles -r -static \
+ $(AM_V_CCLD) $(CCLD) $(LDFLAGS) -nostdlib -nostartfiles -r -static \
-o $@ `sed 's/^/-Wl,-u,/' < $<` -x c /dev/null -lc -lgcc
@if nm $@ | grep __init_cpu_features; \
then echo "Please install a 32bit libc without multiarch support (on Debian systems, the libc6-dev:i386 package containing /usr/lib/i386-linux-gnu/libc.a)". ; \