From 7bd8162335e3183990edf1b4fdca29e9ce8b876c Mon Sep 17 00:00:00 2001 From: naddy Date: Tue, 22 Jul 2003 22:44:45 +0000 Subject: [PATCH] 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. --- devel/t1lib/Makefile | 7 ++++++- .../t1lib/patches/gcc-patch-lib_type1_Makefile_in | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 devel/t1lib/patches/gcc-patch-lib_type1_Makefile_in diff --git a/devel/t1lib/Makefile b/devel/t1lib/Makefile index 38ca2eaa2ce..f10f32d5204 100644 --- a/devel/t1lib/Makefile +++ b/devel/t1lib/Makefile @@ -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 diff --git a/devel/t1lib/patches/gcc-patch-lib_type1_Makefile_in b/devel/t1lib/patches/gcc-patch-lib_type1_Makefile_in new file mode 100644 index 00000000000..f6223dbc2c2 --- /dev/null +++ b/devel/t1lib/patches/gcc-patch-lib_type1_Makefile_in @@ -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