Work around a compiler bug on sparc64 that shows up with -O2 without

-pipe (!) on gcc 2.95 and with -O2 on gcc 3.2.
This commit is contained in:
naddy 2003-07-22 22:44:45 +00:00
parent 15f0ce5431
commit 7bd8162335
2 changed files with 20 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.13 2003/07/21 07:02:24 kevlo Exp $
# $OpenBSD: Makefile,v 1.14 2003/07/22 22:44:45 naddy Exp $
COMMENT= "Type 1 rasterizer library for UNIX/X11"
@ -14,6 +14,11 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
# work around optimizer bug in gcc 2.95/3.2
.if ${MACHINE_ARCH} == "sparc64"
PATCH_LIST= gcc-patch-* patch-*
.endif
USE_X11= Yes
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu

View File

@ -0,0 +1,14 @@
$OpenBSD: gcc-patch-lib_type1_Makefile_in,v 1.1 2003/07/22 22:44:46 naddy Exp $
--- lib/type1/Makefile.in.orig Tue Jun 25 04:15:45 2002
+++ lib/type1/Makefile.in Tue Jul 22 00:56:27 2003
@@ -85,6 +85,10 @@ OBJS = \
all: $(OBJS)
+type1.lo: type1.c
+ $(LIBTOOL) --mode=compile \
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) -O0 $<
+
.PHONY: clean
dependencies: dummy