summaryrefslogtreecommitdiff
path: root/cad/opencascade
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2007-04-21 20:23:58 +0000
committerThierry Thomas <thierry@FreeBSD.org>2007-04-21 20:23:58 +0000
commit74f371ac84dae2eb0675d637f1d55640547d3bf2 (patch)
treef263fb8236bed2fc8f5878bdc6ef7f09dd521efe /cad/opencascade
parentFix dependency on fftw3. (diff)
Add a work-around to fix build with gcc 4.1 on pointyhat.
Reported by: pointyhat via Kris Obtained from: Open Cascade
Notes
Notes: svn path=/head/; revision=190597
Diffstat (limited to 'cad/opencascade')
-rw-r--r--cad/opencascade/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/cad/opencascade/Makefile b/cad/opencascade/Makefile
index d1465d7b07cf..cf0dbfc32aa9 100644
--- a/cad/opencascade/Makefile
+++ b/cad/opencascade/Makefile
@@ -63,7 +63,7 @@ CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} \
--with-stlport-libname=stlport_${STL_COMPILER} \
--with-stlport-library=${LOCALBASE}/lib \
--enable-production=yes
-CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${X11BASE}/include \
+CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} ${GCC4WA} -I${X11BASE}/include \
-I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR}" ARCH=${ARCH}
# We strip the libs
MAKE_ENV= INSTALL_STRIP_FLAG=-s OCC_BUILDDIR="${PATCH_WRKSRC}" \
@@ -95,6 +95,11 @@ DIR2INST+= doc
.include <bsd.port.pre.mk>
+.if ${OSVERSION} > 700036 && defined(PACKAGE_BUILDING)
+# Work-around for gcc-41+
+GCC4WA= -ffriend-injection -fpermissive
+.endif
+
.if defined(MAINTAINER_MODE) # Get the sources & roll the tarballs
PRIM_MASTER_SITES= http://files.opencascade.com/OCC_${PORTVERSION}_release/