summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/m68k/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/m68k/Makefile')
-rw-r--r--libc/sysdeps/linux/m68k/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/m68k/Makefile b/libc/sysdeps/linux/m68k/Makefile
index 5f2b73581..3ca165344 100644
--- a/libc/sysdeps/linux/m68k/Makefile
+++ b/libc/sysdeps/linux/m68k/Makefile
@@ -60,8 +60,17 @@ $(COBJS): %.o : %.c
$(STRIPTOOL) -x -R .note -R .comment $*.o
headers:
- # no arch-specific headers
+ifeq ($(strip $(HAVE_ELF)),false)
+ echo "Working around compiler bug in the m68k-pic-coff toolchain"
+ cd $(TOPDIR)/include;ln -fs ../libc/sysdeps/linux/m68k/float.h .
+else
+ # no arch-specific headers
+endif
+
clean:
rm -f *.[oa] *~ core
+ifeq ($(strip $(HAVE_ELF)),false)
+ rm -f $(TOPDIR)/include/float.h
+endif