summaryrefslogtreecommitdiff
path: root/x11-toolkits/qt145
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2001-01-21 19:36:08 +0000
committerWill Andrews <will@FreeBSD.org>2001-01-21 19:36:08 +0000
commitceba73ff6e238505210e95907107aa7492eae755 (patch)
tree4da74eaf22906ab1127076ad6d55414b7c0f6c4f /x11-toolkits/qt145
parentavoid depending Xlib. (diff)
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 3f9733d30a2a..7c784bc9c2ba 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})