summaryrefslogtreecommitdiff
path: root/extra/gcc-uClibc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-15 13:53:59 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-15 13:53:59 +0000
commitd1322f5f396a87812e6ea79be5ed24cdf8aa1272 (patch)
tree1e130fb0afb21c4514b8adf39b8eced49046c908 /extra/gcc-uClibc
parent330a35150a27b1906431755aff77fdcbdb6ccc00 (diff)
First pass at making this work with the new libcrt0.o location.
Diffstat (limited to 'extra/gcc-uClibc')
-rw-r--r--extra/gcc-uClibc/Makefile4
-rw-r--r--extra/gcc-uClibc/gcc-uClibc.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/extra/gcc-uClibc/Makefile b/extra/gcc-uClibc/Makefile
index af9f836a1..b4f755153 100644
--- a/extra/gcc-uClibc/Makefile
+++ b/extra/gcc-uClibc/Makefile
@@ -16,7 +16,7 @@ endif
all: $(GCC_UCLIBC)
clean:
- rm -f gcc-uClibc.h gcc-uClibc-*
+ rm -f gcc-uClibc.h gcc-uClibc-* core
gcc-uClibc.h: clean
echo "/* this file is created by make */" > gcc-uClibc.h
@@ -30,7 +30,7 @@ gcc-uClibc-native: gcc-uClibc.h gcc-uClibc.c
# uClibc built for native environment, so why not use it ;-)
$(CC) $(CFLAGS) -nostdinc -I$(UCLIBC_DIR)/include -I$(GCC_INC) \
-Wl,-static gcc-uClibc.c \
- $(UCLIBC_DIR)/sysdeps/linux/$(TARGET_ARCH)/_start.o \
+ $(UCLIBC_DIR)/libcrt0.o \
-nostdlib $(GCC_LIB) $(UCLIBC_DIR)/libc.a \
-s -o gcc-uClibc-$(TARGET_ARCH) #-DDEBUG
diff --git a/extra/gcc-uClibc/gcc-uClibc.c b/extra/gcc-uClibc/gcc-uClibc.c
index f783cd7bd..6fd891e32 100644
--- a/extra/gcc-uClibc/gcc-uClibc.c
+++ b/extra/gcc-uClibc/gcc-uClibc.c
@@ -20,7 +20,7 @@
#include "gcc-uClibc.h"
-#define UCLIBC_START UCLIBC_DIR"sysdeps/linux/"TARGET_ARCH"/_start.o"
+#define UCLIBC_START UCLIBC_DIR"libcrt0.o"
#define UCLIBC_START_G UCLIBC_START
#define UCLIBC_LIB UCLIBC_DIR"libc.a"
#if 1