diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-25 23:42:36 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-25 23:42:36 +0000 |
commit | 7cb1909d28543cf956cf1a2b516a5c0c7e4ad3c2 (patch) | |
tree | b36b8d9dbdf6238757665ce9e70c4cf2504d695a | |
parent | eaf2612eb268e5c25cd3ddeef3e8b849eb2157b7 (diff) |
Fix up default .so number. This should avoid conflicts with libc5
libraries...
-rw-r--r-- | extra/gcc-uClibc/Makefile | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/extra/gcc-uClibc/Makefile b/extra/gcc-uClibc/Makefile index 13a4e04c3..67a00a36a 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.1 +DYNAMIC_LINKER = /usr/$(TARGET_ARCH)-linux-uclibc/lib/ld-linux-uclibc.so.0 UCLIBC_DIR = $(shell (cd ../.. ; /bin/pwd)) GCC_BIN = $(CC) @@ -11,9 +11,6 @@ GCC_LIB = $(shell $(CC) -print-libgcc-file-name ) all: gcc-uClibc -clean: - rm -f gcc-uClibc.h *-uclibc-gcc core - gcc-uClibc.h: clean @echo "/* this file is created by make */" > gcc-uClibc.h @echo "#define UCLIBC_INSTALL_DIR " \"$(INSTALL_DIR)/\" >> gcc-uClibc.h @@ -27,3 +24,20 @@ gcc-uClibc.h: clean gcc-uClibc: gcc-uClibc.h gcc-uClibc.c gcc -Wall -O2 -s gcc-uClibc.c -o $(TARGET_ARCH)-uclibc-gcc +install: + @if [ -f $(TARGET_ARCH)-uclibc-gcc ] ; then \ + install -m 755 $(TARGET_ARCH)-uclibc-gcc $(INSTALL_DIR)/bin/ ; \ + fi + $(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)\ + ) + $(shell (for app in cc1 cc1plus; do \ + ln -fs $(CC1DIR)$${app} $(INSTALL_DIR)/bin/$${app}; \ + done)\ + ) + +clean: + rm -f gcc-uClibc.h *-uclibc-gcc core + + |