소스 검색

Do not remove const and extension when compiling with the elf tools.

David McCullough 23 년 전
부모
커밋
ca4fb819f2
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      Makefile

+ 5 - 3
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