summaryrefslogtreecommitdiff
path: root/lib/libm/Makefile
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-05-26 13:52:06 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-05-26 13:52:06 +0000
commit867db52c52f621477e1e05eb824b07da3622b7f1 (patch)
treef43279c1c9008403702db04eb60b6fb97ee19237 /lib/libm/Makefile
parent96cf024680c22787de26f9b95cbdba820b73dd9e (diff)
Work-around: a few files trigger Internal Compiler Errors if compiled with
-O2 on m68k.
Diffstat (limited to 'lib/libm/Makefile')
-rw-r--r--lib/libm/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/libm/Makefile b/lib/libm/Makefile
index e7ca1bafdff..a0f5d31f04e 100644
--- a/lib/libm/Makefile
+++ b/lib/libm/Makefile
@@ -1,5 +1,5 @@
# $NetBSD: Makefile,v 1.28 1995/11/20 22:06:19 jtc Exp $
-# $OpenBSD: Makefile,v 1.17 1999/03/08 19:14:28 millert Exp $
+# $OpenBSD: Makefile,v 1.18 1999/05/26 13:52:05 espie Exp $
#
# @(#)Makefile 5.1beta 93/09/24
#
@@ -13,7 +13,6 @@
# ====================================================
#
#
-
#
# There are two options in making libm at fdlibm compile time:
# _IEEE_LIBM --- IEEE libm; smaller, and somewhat faster
@@ -169,4 +168,18 @@ LINKS+= ${LIBDIR}/libm_pic.a ${LIBDIR}/libm_i387_pic.a
.endif
.endif
+.if (${MACHINE_ARCH} == "m68k")
+.for _I in e_lgamma_r e_lgammaf_r k_tan k_tanf s_atanf
+${_I}.so: ${_I}.c
+ @echo "${COMPILE.c} ${PICFLAGS} -O1 -DPIC ${.IMPSRC} -o ${.TARGET}"
+ @${COMPILE.c} ${PICFLAGS} -O1 -DPIC ${.IMPSRC} -o ${.TARGET}.o
+ @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
+ @rm -f ${.TARGET}.o
+.endfor
+.endif
+#e_acos.o:
+# cpp -D__LIBM_PRIVATE -D_USE_WRITE -D_MULTI_LIBM -D_POSIX_MODE \
+# /usr/src/lib/libm/arch/mc68881/e_acos.S | as -o e_acos.o
+
+
.include <bsd.lib.mk>