aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/fltk
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-08-22 00:28:20 +0800
committerpav <pav@FreeBSD.org>2004-08-22 00:28:20 +0800
commit48bac34a177f2f0ae3e3ec56d19615ed36ebdb8e (patch)
treee60ca075a749e46981a917756f43b03ec8658994 /x11-toolkits/fltk
parent6830a545d7195884bbd7e18a1da82a03445a8126 (diff)
downloadfreebsd-ports-graphics-48bac34a177f2f0ae3e3ec56d19615ed36ebdb8e.tar.gz
freebsd-ports-graphics-48bac34a177f2f0ae3e3ec56d19615ed36ebdb8e.tar.zst
freebsd-ports-graphics-48bac34a177f2f0ae3e3ec56d19615ed36ebdb8e.zip
- Sneak CXX into configure script as CC. Configure script ignores CXX and keeps
on linking C++ code with "cc". This fixes build on gcc 3.4
Diffstat (limited to 'x11-toolkits/fltk')
-rw-r--r--x11-toolkits/fltk/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/x11-toolkits/fltk/Makefile b/x11-toolkits/fltk/Makefile
index eacfe0294ca..07ea0022d86 100644
--- a/x11-toolkits/fltk/Makefile
+++ b/x11-toolkits/fltk/Makefile
@@ -34,7 +34,8 @@ USE_BZIP2= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--enable-shared --enable-xft
-CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
+# configure ignores ${CXX} and keeps on linking C++ code with ${CC}
+CONFIGURE_ENV+= CC="${CXX}" CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
WRKSRC= ${WRKDIR}/${PORTNAME}-${VERSION}
USE_X_PREFIX= yes