summaryrefslogtreecommitdiff
path: root/extra/gcc-uClibc/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-07-05 22:47:07 +0000
committerEric Andersen <andersen@codepoet.org>2002-07-05 22:47:07 +0000
commit95dfbf5eb9150d61ff922fb4beebfa5a399229c4 (patch)
treee6ceda813959b0c75d8b7523bcc9a1210271a74e /extra/gcc-uClibc/Makefile
parentee5c6440b578f9b70baeb7756f6f6370de730ed4 (diff)
Only enable elf2flt support when using elf toolchains
-Erik
Diffstat (limited to 'extra/gcc-uClibc/Makefile')
-rw-r--r--extra/gcc-uClibc/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/extra/gcc-uClibc/Makefile b/extra/gcc-uClibc/Makefile
index 249de0367..ba6139a43 100644
--- a/extra/gcc-uClibc/Makefile
+++ b/extra/gcc-uClibc/Makefile
@@ -32,6 +32,11 @@ ifeq ($(strip $(HAS_MMU)),true)
else
@echo "#undef HAS_MMU" >> gcc-uClibc.h
endif
+ifeq ($(strip $(HAS_ELF)),true)
+ @echo "#define HAS_ELF 1" >> gcc-uClibc.h
+else
+ @echo "#undef HAS_ELF" >> gcc-uClibc.h
+endif
gcc-uClibc: gcc-uClibc.h gcc-uClibc.c
gcc -Wall -O2 -Wl,-s gcc-uClibc.c -o $(TARGET_ARCH)-uclibc-gcc