summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-23 17:45:29 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-23 17:45:29 +0000
commitc6464c0a9e1c70dd82d815ab7ccb6c5439804910 (patch)
treef88dedfc108248b8eecd178da20fc4881e29c5d5
parentdfca1817554be7a4e7b90c11f1dbf7e942cd6407 (diff)
Always use system libc, to facilitate bootstrapping new architectures.
-Erik
-rw-r--r--extra/gcc-uClibc/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/extra/gcc-uClibc/Makefile b/extra/gcc-uClibc/Makefile
index b54c5eadc..fd6ba2933 100644
--- a/extra/gcc-uClibc/Makefile
+++ b/extra/gcc-uClibc/Makefile
@@ -31,13 +31,19 @@ gcc-uClibc.h: clean
echo "#define TARGET_ARCH " \"$(TARGET_ARCH)\" >> gcc-uClibc.h
echo "#define DYNAMIC_LINKER " \"$(DYNAMIC_LINKER)\" >> gcc-uClibc.h
+# uClibc built for native environment, so why not use it ;-)
+# Use the system libc instead of uClibc, to facilitate bootstrapping
+# new architectures.
+#gcc-uClibc-native: gcc-uClibc.h gcc-uClibc.c
+# $(CC) $(CFLAGS) -nostdinc -I$(UCLIBC_DIR)/include -I$(GCC_INC) \
+# -Wl,-static gcc-uClibc.c \
+# $(UCLIBC_DIR)/crt0.o \
+# -nostdlib $(GCC_LIB) $(UCLIBC_DIR)/libc.a \
+# -s -o gcc-uClibc-$(TARGET_ARCH) #-DDEBUG
+
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)/crt0.o \
- -nostdlib $(GCC_LIB) $(UCLIBC_DIR)/libc.a \
- -s -o gcc-uClibc-$(TARGET_ARCH) #-DDEBUG
+ # don't use CFLAGS since may not be appropriate
+ gcc -s gcc-uClibc.c -o gcc-uClibc-$(TARGET_ARCH)
gcc-uClibc-cross: gcc-uClibc.h gcc-uClibc.c
# don't use CFLAGS since may not be appropriate