ports/148199: [patch] fix build for x11-toolkits/qt4-gui on powerpc64

Nathan Whitehorn nwhitehorn at FreeBSD.org
Mon Jun 28 02:10:05 UTC 2010


>Number:         148199
>Category:       ports
>Synopsis:       [patch] fix build for x11-toolkits/qt4-gui on powerpc64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 28 02:10:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Nathan Whitehorn
>Release:        FreeBSD 9.0-CURRENT powerpc64
>Organization:
University of Wisconsin
>Environment:
System: FreeBSD anacreon.physics.wisc.edu 9.0-CURRENT FreeBSD 9.0-CURRENT #6 r209477:209507: Thu Jun 24 09:30:48 CDT 2010 root at anacreon.physics.wisc.edu:/usr/obj/scratch/src/sys/ANACREON powerpc64


	
>Description:
	Due to a binutils deficiency on 64-bit powerpc systems, the qt4-gui
library will not link due to a TOC overflow.
-mminimal-toc to the compiler flags.
>How-To-Repeat:
	
>Fix:
	The attached patch adds -mminimal-toc to LDFLAGS on this platform,
which works around this issue and produces a functioning build of QT.

--- qt4-gui-Makefile.diff begins here ---
--- Makefile.bak	2010-06-26 15:34:37.000000000 -0500
+++ Makefile	2010-06-26 14:42:22.000000000 -0500
@@ -58,6 +58,12 @@
 FONTSCALE=	${LOCALBASE}/lib/X11/fonts/TTF/luximb.ttf
 FONTENCOD=	${LOCALBASE}/lib/X11/fonts/encodings/encodings.dir
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == powerpc64
+CFLAGS+= -mminimal-toc
+.endif
+
 .include "${.CURDIR}/../../devel/qt4/files/Makefile.options"
 
 .if ${QT4_OPTIONS:MCUPS}
@@ -99,4 +105,4 @@
 			-E -e 's|(.*location=).*uic|\1${PREFIX}/bin/uic-qt4|g' \
 		${WRKSRC}/lib/pkgconfig/QtGui.pc
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- qt4-gui-Makefile.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list