From 4a2a8b039c53b2dd1b530a2592eac54634144dc4 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 16 Aug 2007 21:54:03 +0000 Subject: 2007-08-16 Samuel Thibault * Makefile.am (clib_routines): Add udivdi3, __udivdi3 and _end. Fix edata into _edata. (gnumach-undef): Do not remove heading _s. (clib-routines.o): Add -lgcc. --- Makefile.am | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 05c56ce..a2e7c9d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -127,9 +127,10 @@ noinst_PROGRAMS += \ clib_routines := memcpy memmove memset bcopy bzero \ strchr strstr strsep strpbrk strtok \ htonl htons ntohl ntohs \ - etext edata end # actually ld magic, not libc. + udivdi3 __udivdi3 \ + etext _edata end _end # actually ld magic, not libc. gnumach-undef: gnumach.$(OBJEXT) - $(NM) -u $< | sed 's/ *U *//;s/^_*//' | sort -u > $@ + $(NM) -u $< | sed 's/ *U *//' | sort -u > $@ MOSTLYCLEANFILES += gnumach-undef gnumach-undef-bad: gnumach-undef Makefile sed '$(foreach r,$(clib_routines),/^$r$$/d;)' $< > $@ @@ -138,7 +139,7 @@ clib-routines.o: gnumach-undef gnumach-undef-bad if test -s gnumach-undef-bad; \ then cat gnumach-undef-bad; exit 2; else true; fi $(CCLD) -nostdlib -nostartfiles -r -static \ - -o $@ `sed 's/^/-Wl,-u,/' < $<` -x c /dev/null -lc + -o $@ `sed 's/^/-Wl,-u,/' < $<` -x c /dev/null -lc -lgcc gnumach_LINK = $(LD) $(LINKFLAGS) $(gnumach_LINKFLAGS) -o $@ gnumach_LDADD = gnumach.o clib-routines.o -- cgit v1.2.3