diff options
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 |