From 0842c5e85ab2b049af7b44ce2196362bdce80c97 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 24 Oct 2016 21:05:18 +0200 Subject: Fix taking LDFLAGS into account * Makefile.am (clib-routines.o): Add $(LDFLAGS) to link command. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)". ; \ -- cgit v1.2.3