summaryrefslogtreecommitdiff
path: root/extra/gcc-uClibc/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-03 06:20:12 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-03 06:20:12 +0000
commitb35cf07aac65df84bf9b0006798080e6a264323f (patch)
tree010cb7eb3b9f8d4826e33a5dd835c1c4212efbfd /extra/gcc-uClibc/Makefile
parentfe59e884939be00a0bbdc42add4076f23d2f3323 (diff)
Avoid needing to distinguis between the install dir and the build
dir. Use both automagically when compiling. -Erik
Diffstat (limited to 'extra/gcc-uClibc/Makefile')
-rw-r--r--extra/gcc-uClibc/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/extra/gcc-uClibc/Makefile b/extra/gcc-uClibc/Makefile
index d4bd587b8..2e5793979 100644
--- a/extra/gcc-uClibc/Makefile
+++ b/extra/gcc-uClibc/Makefile
@@ -2,7 +2,7 @@ TOPDIR = ../../
include $(TOPDIR)Rules.mak
# NOTE: This may need to be modified for your system
-DYNAMIC_LINKER = /usr/$(TARGET_ARCH)-linux-uclibc/lib/ld-linux-uclibc.so.$(MAJOR_VERSION)
+DYNAMIC_LINKER = $(INSTALL_DIR)/lib/ld-linux-uclibc.so.$(MAJOR_VERSION)
UCLIBC_DIR = $(shell (cd ../.. ; /bin/pwd))
GCC_BIN = $(CC)
@@ -26,9 +26,11 @@ gcc-uClibc: gcc-uClibc.h gcc-uClibc.c
install:
@if [ -f $(TARGET_ARCH)-uclibc-gcc ] ; then \
- install -m 755 $(TARGET_ARCH)-uclibc-gcc $(INSTALL_DIR)/bin/ ; \
+ mkdir -p $(INSTALL_DIR)/usr/bin ; \
+ install -m 755 $(TARGET_ARCH)-uclibc-gcc $(INSTALL_DIR)/usr/bin/ ; \
fi
- $(shell (for app in addr2line ar as gasp ld nm objcopy objdump ranlib size strings strip; do \
+ $(shell (for app in addr2line ar as gasp ld nm objcopy objdump \
+ ranlib size strings strip; do \
ln -fs `which $(CROSS)$${app}` $(INSTALL_DIR)/bin/$${app}; \
done)\
)