summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/qt145
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2001-01-21 19:36:08 +0000
committerwill <will@FreeBSD.org>2001-01-21 19:36:08 +0000
commita352ee0ff029273b75572572918c96fd178a26c9 (patch)
treeacc338a982f39dfa7e8f964e9e61bf4797d443bc /x11-toolkits/qt145
parenta25da6c5f193a89d1142bb1435402f3c2b2cd322 (diff)
downloadFreeBSD-ports-a352ee0ff029273b75572572918c96fd178a26c9.zip
FreeBSD-ports-a352ee0ff029273b75572572918c96fd178a26c9.tar.gz
Add workaround (CFLAGS+=-frerun-cse-after-loops) for breakage in GCC
2.95.3. It's backwards compatible, so no need for OSVERSION or other checks like that. Also add new var - MAKE_JOBS, which allows you to adjust the -jN argument (I wanted this 'cause with more CPUs I can compile with MAKE_JOBS=4 or greater). Methinks this kind of thing belongs in bsd.port.mk, but anyway. I can now compile (with MAKE_JOBS=4) qt 1.45 in less than 4 minutes on my dual PIII-600E. :) Submitted by: sf (workaround) Requested by: alex (workaround)
Diffstat (limited to 'x11-toolkits/qt145')
-rw-r--r--x11-toolkits/qt145/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/x11-toolkits/qt145/Makefile b/x11-toolkits/qt145/Makefile
index 3f9733d..7c784bc 100644
--- a/x11-toolkits/qt145/Makefile
+++ b/x11-toolkits/qt145/Makefile
@@ -21,7 +21,13 @@ NO_LATEST_LINK= yes
USE_GMAKE= yes
USE_X_PREFIX= yes
USE_NEWGCC= yes
-MAKE_ENV+= QTDIR=${WRKSRC} CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" CC="${CC}"
+.if defined(MAKE_JOBS)
+MAKE_ARGS+= MAKE="${GMAKE} -j${MAKE_JOBS}"
+.else
+MAKE_ARGS+= MAKE="${GMAKE} -j2"
+.endif
+MAKE_ENV+= QTDIR=${WRKSRC} CXX="${CXX}" \
+ CXXFLAGS="${CXXFLAGS} -frerun-cse-after-loop" CC="${CC}"
VER_MAJ= 3
VER_MIN= 0
@@ -50,7 +56,7 @@ post-patch:
post-configure:
@${PERL} -pi -e "s:g\+\+:${CXX}:g ; \
s:/usr/X11R6:${PREFIX}:g ; \
- s:%%CXXFLAGS%%:${CXXFLAGS}:g ; \
+ s:%%CXXFLAGS%%:${CXXFLAGS} -frerun-cse-after-loop:g ; \
s:%%VERSION%%:${VERSION}:g" ${WRKSRC}/configs/freebsd-g++-${STATIC}
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} freebsd-g++-${STATIC})
OpenPOWER on IntegriCloud