From ca4fb819f297526c076332a84eefa25b0d33781a Mon Sep 17 00:00:00 2001 From: David McCullough Date: Tue, 20 Mar 2001 10:51:57 +0000 Subject: Do not remove const and extension when compiling with the elf tools. --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 871691d1c..8cdc757bd 100644 --- a/Makefile +++ b/Makefile @@ -175,9 +175,11 @@ uClibc_config.h: Config fi @if [ "$(TARGET_ARCH)" = "m68k" ] ; then \ echo "#define __VFORK_MACRO__ 1" >> uClibc_config.h ; \ - echo "#define const" >> uClibc_config.h ; \ - echo "#define __const" >> uClibc_config.h ; \ - echo "#define __extension" >> uClibc_config.h ; \ + if [ `expr match "$(CC)" ".*\(m68k-elf-.*\)"`x = x ]; then \ + echo "#define const" >> uClibc_config.h ; \ + echo "#define __const" >> uClibc_config.h ; \ + echo "#define __extension" >> uClibc_config.h ; \ + fi; \ else \ echo "#undef __VFORK_MACRO__" >> uClibc_config.h ; \ fi -- cgit v1.2.3