diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2007-08-16 21:54:03 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:27:12 +0200 |
commit | 4a2a8b039c53b2dd1b530a2592eac54634144dc4 (patch) | |
tree | 03ab89641b483bb5cf440493c93c92b362e1f437 /Makefile.am | |
parent | e44a3dddf93d9ac15eea6bd323a2308b0ea6d493 (diff) | |
download | gnumach-4a2a8b039c53b2dd1b530a2592eac54634144dc4.tar.gz gnumach-4a2a8b039c53b2dd1b530a2592eac54634144dc4.tar.bz2 gnumach-4a2a8b039c53b2dd1b530a2592eac54634144dc4.zip |
2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
* 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.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 05c56ce9..a2e7c9db 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 |