From 49bbb6792c03a43e09cf203fef8f1a96312e1225 Mon Sep 17 00:00:00 2001 From: Max Brazhnikov Date: Fri, 9 Jul 2010 16:24:55 +0000 Subject: [PATCH] Fix build for on powerpc64 PR: ports/148199 Submitted by: nwhitehorn@ --- x11-toolkits/qt4-gui/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/x11-toolkits/qt4-gui/Makefile b/x11-toolkits/qt4-gui/Makefile index 057936b982ad..25ce7d69204b 100644 --- a/x11-toolkits/qt4-gui/Makefile +++ b/x11-toolkits/qt4-gui/Makefile @@ -84,6 +84,12 @@ RUN_DEPENDS+= ${FONTSCALE}:${X_FONTS_TTF_PORT} \ ${FONTENCOD}:${X_FONTS_ENCODINGS_PORT} .endif +.include + +.if ${ARCH} == powerpc64 +CFLAGS+= -mminimal-toc +.endif + pre-configure: ${MKDIR} ${WRKSRC}/mkspecs ${LN} -sf ${LOCALBASE}/bin/qmake-qt4 ${WRKSRC}/bin/qmake @@ -99,4 +105,4 @@ post-configure: -E -e 's|(.*location=).*uic|\1${PREFIX}/bin/uic-qt4|g' \ ${WRKSRC}/lib/pkgconfig/QtGui.pc -.include +.include