summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-03 01:27:36 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-03 01:27:36 +0100
commit65637ceb7f104ccc56809adee34f49afb7884e47 (patch)
tree4893fb7f6bd51677f994f92316b5053eef52c1a9
parent1435b7f7d41a21fa45641b6aca505623297fba4a (diff)
Refuse to link against a libc with multiarch support
We don't have support for this yet. * Makefile.am (clib-routines.o): Check for the presence of __init_cpu_features, and in such case refuse to continue.
-rw-r--r--Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 918cdc3..d4c04bb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -173,6 +173,9 @@ clib-routines.o: gnumach-undef gnumach-undef-bad
then cat gnumach-undef-bad; exit 2; else true; fi
$(AM_V_CCLD) $(CCLD) -nostdlib -nostartfiles -r -static \
-o $@ `sed 's/^/-Wl,-u,/' < $<` -x c /dev/null -lc -lgcc
+ $(AM_V_at) if nm $@ | grep __init_cpu_features; \
+ then echo Please install a 32bit libc without multiarch support. ; \
+ fi ; false
gnumach_LINK = $(LD) $(LINKFLAGS) $(gnumach_LINKFLAGS) -o $@
gnumach_LDADD = gnumach.o clib-routines.o