diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-02-20 09:28:25 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-02-20 09:28:25 +0000 |
commit | 6ecb091433a15aa7ad8ca8aa38305cc2c7905caa (patch) | |
tree | fb43f187f1f63f76f92d2453eb26cb7bbd66e352 /extra/gcc-uClibc/Makefile | |
parent | e356ea321c8098cf1a83a67e27d64c44de08a298 (diff) |
Several needed cleanups to the gcc wrapper.
-Erik
Diffstat (limited to 'extra/gcc-uClibc/Makefile')
-rw-r--r-- | extra/gcc-uClibc/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extra/gcc-uClibc/Makefile b/extra/gcc-uClibc/Makefile index 9ab2784f8..552e63cea 100644 --- a/extra/gcc-uClibc/Makefile +++ b/extra/gcc-uClibc/Makefile @@ -11,6 +11,7 @@ UCLIBC_DIR = $(shell (cd ../.. ; /bin/pwd)) GCC_BIN = $(shell which $(CC)) LD_BIN = $(shell which $(LD)) GCC_LIB = $(shell $(CC) -print-libgcc-file-name ) +GCC_LIB_DIR = $(dir $(shell $(CC) -print-libgcc-file-name )) #GCCINCDIR inherited from Rules.mak all: gcc-uClibc ld-uClibc @@ -22,6 +23,7 @@ gcc-uClibc.h: $(TOPDIR)/Config @echo "#define UCLIBC_BUILD_DIR " \"$(UCLIBC_DIR)\" >> gcc-uClibc.h @echo "#define GCC_BIN " \"$(GCC_BIN)\" >> gcc-uClibc.h @echo "#define GCC_LIB " \"$(GCC_LIB)\" >> gcc-uClibc.h + @echo "#define GCC_LIB_DIR " \"$(GCC_LIB_DIR)\" >> gcc-uClibc.h @echo "#define GCC_INCDIR " \"-I$(GCCINCDIR)\" >> gcc-uClibc.h @echo "#define TARGET_ARCH " \"$(TARGET_ARCH)\" >> gcc-uClibc.h @echo "#define DYNAMIC_LINKER " \"$(DYNAMIC_LINKER)\" >> gcc-uClibc.h @@ -33,7 +35,7 @@ gcc-uClibc: gcc-uClibc.h gcc-uClibc.c ld-uClibc: @echo "#!/bin/sh" > $(TARGET_ARCH)-uclibc-ld @echo "# This file was autogenerated by make" >> $(TARGET_ARCH)-uclibc-ld - @echo "$(LD_BIN) -L- -L$(DEVEL_PREFIX)/lib -L$(DEVEL_PREFIX)/usr/lib "\ + @echo "$(LD_BIN) -nostdlib -L- -L$(DEVEL_PREFIX)/lib -L$(DEVEL_PREFIX)/usr/lib "\ "-L$(UCLIBC_DIR) \$$@" >> $(TARGET_ARCH)-uclibc-ld chmod a+x $(TARGET_ARCH)-uclibc-ld |