diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-06-15 23:58:10 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-06-15 23:58:10 +0000 |
commit | 34d61933bb059372c68a4cfacc4ce801dc1f28db (patch) | |
tree | 09c0a2438db7dc2efda12f4b0e588aa31db217d9 | |
parent | 1c8b3c30f9bb9690d48c5196c8481455e3634cd4 (diff) |
A few build updates
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | Rules.mak | 4 | ||||
-rw-r--r-- | ldso/Makefile | 2 | ||||
-rw-r--r-- | ldso/util/Makefile | 4 |
4 files changed, 7 insertions, 9 deletions
@@ -30,10 +30,7 @@ TOPDIR=./ include Rules.mak -ifeq ($(DO_SHARED),shared) - LDSO_DIR = ldso -endif -DIRS = extra $(LDSO_DIR) libc libcrypt libresolv libutil libm +DIRS = extra ldso libc libcrypt libresolv libutil libm ifndef $(TARGET_PREFIX) TARGET_PREFIX = `pwd`/_install @@ -50,6 +47,7 @@ Config: shared: @$(MAKE) -C libc shared + @$(MAKE) -C ldso/util ifeq ($(LDSO_PRESENT), $(TARGET_ARCH)) @$(MAKE) -C ldso shared endif @@ -56,13 +56,13 @@ ifeq ($(strip $(DODEBUG)),true) CFLAGS += -g TARGET_CFLAGS += -g LDFLAGS = -nostdlib -Wl,-warn-common - TARGET_LDFLAGS = -Wl,-warn-common + TARGET_LDFLAGS = --uclibc-use-build-dir -Wl,-warn-common STRIPTOOL = /bin/true -Since_we_are_debugging else CFLAGS += -DNDEBUG #-fomit-frame-pointer TARGET_CFLAGS += -DNDEBUG #-fomit-frame-pointer LDFLAGS = -s -nostdlib -Wl,-warn-common - TARGET_LDFLAGS = -s -Wl,-warn-common + TARGET_LDFLAGS = --uclibc-use-build-dir -s -Wl,-warn-common endif ifndef $(PREFIX) diff --git a/ldso/Makefile b/ldso/Makefile index f26489eee..aa37d2ea4 100644 --- a/ldso/Makefile +++ b/ldso/Makefile @@ -1,7 +1,7 @@ TOPDIR=../ include $(TOPDIR)Rules.mak -SUBDIRS = util libdl +SUBDIRS = libdl ALL_SUBDIRS = util libdl d-link all: diff --git a/ldso/util/Makefile b/ldso/util/Makefile index cb5cfea34..dd69c9b10 100644 --- a/ldso/util/Makefile +++ b/ldso/util/Makefile @@ -17,13 +17,13 @@ ldd.o: ldd.c $(STRIPTOOL) -x -R .note -R .comment $*.o readelf: readelf.c - $(TARGET_CC) $(TARGET_CFLAGS) readelf.c -o $@ + $(TARGET_CC) $(TARGET_CFLAGS) -static readelf.c -o $@ ldconfig: ldconfig.o readsoname.o $(TARGET_CC) $(TARGET_CFLAGS) -static $^ -o $@ ldd: ldd.o readsoname.o - $(TARGET_CC) $(TARGET_CFLAGS) $^ -o $@ + $(TARGET_CC) $(TARGET_CFLAGS) -static $^ -o $@ clean: rm -f ldconfig ldd readelf *.o *~ core |