- disable optimization for glib on powerpc because it can lead to a segfault

under some circumstances

ok kili@ jasper@
This commit is contained in:
ajacoutot 2007-06-25 15:28:44 +00:00
parent 427335879c
commit ce44a3bea8
2 changed files with 20 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.33 2007/06/04 19:02:45 kurt Exp $
# $OpenBSD: Makefile,v 1.34 2007/06/25 15:28:44 ajacoutot Exp $
COMMENT-main= "general-purpose utility library"
COMMENT-docs= "glib2 documentation"
VERSION= 2.12.12
DISTNAME= glib-${VERSION}
PKGNAME-main= glib2-${VERSION}p0
PKGNAME-main= glib2-${VERSION}p1
PKGNAME-docs= glib2-docs-${VERSION}
CATEGORIES= devel
@ -39,6 +39,12 @@ RUN_DEPENDS-docs=
CONFIGURE_ARGS+= --disable-threads
.endif
# disable optimization on powerpc because it can lead to a
# segfault under some circumstances
.if ${MACHINE_ARCH} == "powerpc"
PATCH_LIST= patch-* PPC-patch-glib_Makefile_in
.endif
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu

View File

@ -0,0 +1,12 @@
$OpenBSD: PPC-patch-glib_Makefile_in,v 1.1 2007/06/25 15:28:44 ajacoutot Exp $
--- glib/Makefile.in.orig Mon Jun 25 12:11:11 2007
+++ glib/Makefile.in Mon Jun 25 12:11:32 2007
@@ -51,7 +51,7 @@ CATALOGS = @CATALOGS@
CATOBJEXT = @CATOBJEXT@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
+CFLAGS = @CFLAGS@ -O0
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CROSS_COMPILING_FALSE = @CROSS_COMPILING_FALSE@