From 65637ceb7f104ccc56809adee34f49afb7884e47 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 3 Nov 2014 01:27:36 +0100 Subject: 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. --- Makefile.am | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3