diff options
author | David McCullough <davidm@snapgear.com> | 2001-03-20 10:51:57 +0000 |
---|---|---|
committer | David McCullough <davidm@snapgear.com> | 2001-03-20 10:51:57 +0000 |
commit | ca4fb819f297526c076332a84eefa25b0d33781a (patch) | |
tree | a52511293bcad4fb0bca3e13d46210ab3d216d31 /Makefile | |
parent | 60b3b2c8f679fb1c0ea8565f513dc6e1aa3bb23a (diff) |
Do not remove const and extension when compiling with the elf tools.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |