summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-31 07:40:18 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-31 07:40:18 +0000
commit290b06002e9d168438c418c508e6ab5431b05b62 (patch)
tree50fbd90880b7d332ef655f0e1c782a9364173f54
parente2d432ecf053ec5f69f42263b69daee149d9f345 (diff)
Fix makefile so it actually works when cross compiling
-Erik
-rw-r--r--ldso/util/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/ldso/util/Makefile b/ldso/util/Makefile
index 3dce67cff..37a09fa88 100644
--- a/ldso/util/Makefile
+++ b/ldso/util/Makefile
@@ -22,7 +22,7 @@
TOPDIR=../../
include $(TOPDIR)Rules.mak
-TARGET_CC = $(TOPDIR)extra/gcc-uClibc/$(NATIVE_ARCH)-uclibc-gcc
+TARGET_CC = $(TOPDIR)extra/gcc-uClibc/$(TARGET_ARCH)-uclibc-gcc
TARGETS=elf_header ldconfig ldd ldd.target readelf readelf.target
all: $(TARGETS)
@@ -32,7 +32,7 @@ elf_header:
readelf: readelf.c
$(NATIVE_CC) $(NATIVE_CFLAGS) -I . readelf.c -o $@
- $(STRIPTOOL) -x -R .note -R .comment $@
+ strip -x -R .note -R .comment $@
readelf.target: readelf.c
$(TARGET_CC) $(CFLAGS) -static --uclibc-use-build-dir -s readelf.c -o $@
@@ -44,16 +44,16 @@ ldconfig:
else
readsoname.o: readsoname.c readsoname2.c
$(NATIVE_CC) $(NATIVE_CFLAGS) -I . -c $< -o $@
- $(STRIPTOOL) -x -R .note -R .comment $*.o
+ strip -x -R .note -R .comment $*.o
ldconfig.o: ldconfig.c
$(NATIVE_CC) $(NATIVE_CFLAGS) -I . \
-DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" -c $< -o $@
- $(STRIPTOOL) -x -R .note -R .comment $*.o
+ strip -x -R .note -R .comment $*.o
ldconfig: ldconfig.o readsoname.o
$(NATIVE_CC) $(NATIVE_CFLAGS) $^ -o $@
- $(STRIPTOOL) -x -R .note -R .comment $@
+ strip -x -R .note -R .comment $@
endif
ldd: ldd.c
@@ -62,7 +62,7 @@ ldd: ldd.c
-DUCLIBC_BUILD_DIR=\"$(shell cd $(TOPDIR) && pwd)\" \
-DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\" -I . \
ldd.c -o $@
- $(STRIPTOOL) -x -R .note -R .comment $@
+ strip -x -R .note -R .comment $@
ldd.target: ldd.c
$(TARGET_CC) $(CFLAGS) -static --uclibc-use-build-dir -s -DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" \