diff options
author | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2004-10-14 09:53:15 +0000 |
---|---|---|
committer | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2004-10-14 09:53:15 +0000 |
commit | 6bc6a6f5d779643263f83d9f348c3dd9d788bae9 (patch) | |
tree | 1e7a9a73b57d455c742e947178447319bf1ff98a /utils/Makefile | |
parent | f8b23fd8da1d342dfd4f5e67377d7c0f08eb3603 (diff) |
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.
Diffstat (limited to 'utils/Makefile')
-rw-r--r-- | utils/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
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 |