From 6bc6a6f5d779643263f83d9f348c3dd9d788bae9 Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Thu, 14 Oct 2004 09:53:15 +0000 Subject: Peter Mazinger writes: The attached patch is an updated version of an earlier sent patch It solves the problem that the target utils (ldconfig/ldd/iconv, readelf is not handled, but can be easily added) are not built w/ the newly created [S]crt[01].o files. --- utils/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'utils/Makefile') diff --git a/utils/Makefile b/utils/Makefile index a488c32ba..c5c858195 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -49,19 +49,22 @@ ldconfig: ldconfig.c readsoname.c $(CC) $(CFLAGS) $(XXFLAGS) -Wl,-s -static \ -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \ -DUCLIBC_LDSO=$(UCLIBC_LDSO) -I. -I../ldso/include \ - $^ -o $@ $(LDADD_LIBFLOAT) -L../lib + -nostdlib -o $@ $(STATIC_BIN_START_FILES) $^ $(LDADD_LIBFLOAT) \ + -L../lib -lc $(LIBGCC) $(STATIC_BIN_END_FILES) $(STRIPTOOL) -x -R .note -R .comment $@ ldd: ldd.c $(CC) $(CFLAGS) $(XXFLAGS) -Wl,-s \ -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \ -DUCLIBC_LDSO=$(UCLIBC_LDSO) -I. -I../ldso/include \ - $^ -o $@ $(LDADD_LIBFLOAT) -L../lib + -nostdlib -o $@ $(BIN_START_FILES) $^ $(LDADD_LIBFLOAT) \ + -L../lib -lc $(LIBGCC) $(END_FILES) $(STRIPTOOL) -x -R .note -R .comment $@ iconv: ../libc/misc/wchar/wchar.c $(CC) $(CFLAGS) $(XXFLAGS) -Wl,-s -DL_iconv_main \ - $^ -o $@ $(LDADD_LIBFLOAT) -L../lib + -nostdlib -o $@ $(BIN_START_FILES) $^ $(LDADD_LIBFLOAT) \ + -L../lib -lc $(LIBGCC) $(END_FILES) $(STRIPTOOL) -x -R .note -R .comment $@ hostutils: ldd.host ldconfig.host readelf.host -- cgit v1.2.3