From 784afa989706d7b62757a8fc4fa03e600bfaf8db Mon Sep 17 00:00:00 2001 From: mezz Date: Fri, 2 Sep 2005 21:09:15 +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 git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4681 df743ca5-7f9a-e211-a948-0013205c9059 --- x11-toolkits/gtk20/Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/x11-toolkits/gtk20/Makefile b/x11-toolkits/gtk20/Makefile index 6abccb38c..5c7fde1eb 100644 --- a/x11-toolkits/gtk20/Makefile +++ b/x11-toolkits/gtk20/Makefile @@ -3,11 +3,12 @@ # Whom: Vanilla I. Shu # # $FreeBSD$ -# $MCom: ports/x11-toolkits/gtk20/Makefile,v 1.69 2005/08/25 16:28:44 marcus Exp $ +# $MCom: ports/x11-toolkits/gtk20/Makefile,v 1.70 2005/08/29 20:02:11 marcus Exp $ # PORTNAME= gtk PORTVERSION= 2.8.3 +PORTREVISION= 1 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/gtk+/2.8,} \ ftp://ftp.gtk.org/pub/gtk/v2.8/ \ @@ -73,6 +74,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} @@ -108,4 +119,4 @@ post-install: @${MKDIR} ${PREFIX}/lib/gtk-2.0/modules @${MKDIR} ${PREFIX}/lib/gtk-2.0/${GTK_VERSION}/engines -.include +.include -- cgit v1.2.3