From 41ae1cbf8264a232f1076db531f363e5e61a92e5 Mon Sep 17 00:00:00 2001 From: mezz Date: Fri, 2 Sep 2005 22:07:47 +0000 Subject: There is a SSE2 bug in either GCC or in our libc, when use p4, p-m or else is being use in CPUTYPE that enable SSE2 will causing Java with GTK2 and Mono/gtk-sharp crash. Disable SSE2 to solve the crash and see ports/72014 for detail. Reported by: Panagiotis Astithas Reviewed by: marcus --- x11-toolkits/gtk20/Makefile | 13 ++++++++++++- x11-toolkits/gtk30/Makefile | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) (limited to 'x11-toolkits') diff --git a/x11-toolkits/gtk20/Makefile b/x11-toolkits/gtk20/Makefile index 4c7ec0daf82c..a02f9ce8f997 100644 --- a/x11-toolkits/gtk20/Makefile +++ b/x11-toolkits/gtk20/Makefile @@ -7,6 +7,7 @@ PORTNAME= gtk PORTVERSION= 2.6.10 +PORTREVISION= 1 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/gtk+/2.6,} \ ftp://ftp.gtk.org/pub/gtk/v2.6/ \ @@ -71,6 +72,16 @@ STRIP= .endif .endif +.include + +# There is a SSE2 bug in either GCC or in our libc, when use p4, p-m or else +# is being use in CPUTYPE that enable SSE2 will causing Java with GTK2 and +# Mono/gtk-sharp crash. Disable SSE2 to solve the crash and see ports/72014 +# for detail. +.if ( ${ARCH} == "i386" || ${ARCH} == "amd64" ) && ${CC} != "icc" +CFLAGS+= -mno-sse2 +.endif + pre-everything:: .if !defined(WITH_DROPSHADOW) @${ECHO_MSG} @@ -106,4 +117,4 @@ post-install: @${MKDIR} ${PREFIX}/lib/gtk-2.0/modules @${MKDIR} ${PREFIX}/lib/gtk-2.0/${GTK_VERSION}/engines -.include +.include diff --git a/x11-toolkits/gtk30/Makefile b/x11-toolkits/gtk30/Makefile index 4c7ec0daf82c..a02f9ce8f997 100644 --- a/x11-toolkits/gtk30/Makefile +++ b/x11-toolkits/gtk30/Makefile @@ -7,6 +7,7 @@ PORTNAME= gtk PORTVERSION= 2.6.10 +PORTREVISION= 1 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/gtk+/2.6,} \ ftp://ftp.gtk.org/pub/gtk/v2.6/ \ @@ -71,6 +72,16 @@ STRIP= .endif .endif +.include + +# There is a SSE2 bug in either GCC or in our libc, when use p4, p-m or else +# is being use in CPUTYPE that enable SSE2 will causing Java with GTK2 and +# Mono/gtk-sharp crash. Disable SSE2 to solve the crash and see ports/72014 +# for detail. +.if ( ${ARCH} == "i386" || ${ARCH} == "amd64" ) && ${CC} != "icc" +CFLAGS+= -mno-sse2 +.endif + pre-everything:: .if !defined(WITH_DROPSHADOW) @${ECHO_MSG} @@ -106,4 +117,4 @@ post-install: @${MKDIR} ${PREFIX}/lib/gtk-2.0/modules @${MKDIR} ${PREFIX}/lib/gtk-2.0/${GTK_VERSION}/engines -.include +.include -- cgit