From 867db52c52f621477e1e05eb824b07da3622b7f1 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Wed, 26 May 1999 13:52:06 +0000 Subject: Work-around: a few files trigger Internal Compiler Errors if compiled with -O2 on m68k. --- lib/libm/Makefile | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'lib/libm/Makefile') 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 -- cgit v1.2.3