|
@@ -16,7 +16,7 @@ endif
|
|
all: $(GCC_UCLIBC)
|
|
all: $(GCC_UCLIBC)
|
|
|
|
|
|
clean:
|
|
clean:
|
|
- rm -f gcc-uClibc.h gcc-uClibc-*
|
|
|
|
|
|
+ rm -f gcc-uClibc.h gcc-uClibc-* core
|
|
|
|
|
|
gcc-uClibc.h: clean
|
|
gcc-uClibc.h: clean
|
|
echo "/* this file is created by make */" > gcc-uClibc.h
|
|
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 ;-)
|
|
# uClibc built for native environment, so why not use it ;-)
|
|
$(CC) $(CFLAGS) -nostdinc -I$(UCLIBC_DIR)/include -I$(GCC_INC) \
|
|
$(CC) $(CFLAGS) -nostdinc -I$(UCLIBC_DIR)/include -I$(GCC_INC) \
|
|
-Wl,-static gcc-uClibc.c \
|
|
-Wl,-static gcc-uClibc.c \
|
|
- $(UCLIBC_DIR)/sysdeps/linux/$(TARGET_ARCH)/_start.o \
|
|
|
|
|
|
+ $(UCLIBC_DIR)/libcrt0.o \
|
|
-nostdlib $(GCC_LIB) $(UCLIBC_DIR)/libc.a \
|
|
-nostdlib $(GCC_LIB) $(UCLIBC_DIR)/libc.a \
|
|
-s -o gcc-uClibc-$(TARGET_ARCH) #-DDEBUG
|
|
-s -o gcc-uClibc-$(TARGET_ARCH) #-DDEBUG
|
|
|
|
|