aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libcwd
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2004-03-14 10:57:57 +0800
committerkris <kris@FreeBSD.org>2004-03-14 10:57:57 +0800
commit396c5a90b78f1297d0eb6a2efa2965b242931b46 (patch)
tree245f662020a1dd108d028c6f23f455a870a9b285 /devel/libcwd
parentc5a0212340be280cbe2f90457febd5e21371f00c (diff)
downloadfreebsd-ports-gnome-396c5a90b78f1297d0eb6a2efa2965b242931b46.tar.gz
freebsd-ports-gnome-396c5a90b78f1297d0eb6a2efa2965b242931b46.tar.zst
freebsd-ports-gnome-396c5a90b78f1297d0eb6a2efa2965b242931b46.zip
Work around bsd.port.mk bug: CC and CXX are not added to MAKE_ENV for
USE_GCC=3.2 and 3.3.
Diffstat (limited to 'devel/libcwd')
-rw-r--r--devel/libcwd/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/devel/libcwd/Makefile b/devel/libcwd/Makefile
index 4f1a8b8b03eb..1d6eb25efe52 100644
--- a/devel/libcwd/Makefile
+++ b/devel/libcwd/Makefile
@@ -22,8 +22,15 @@ CONFIGURE_ARGS= --disable-threading
USE_GMAKE= yes
INSTALLS_SHLIB= yes
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 501103
+# Work around bsd.port.mk bug: Does not currently set up MAKE_ENV for gcc 3.2 and 3.3
+MAKE_ENV+= CC="${CC}" CXX="${CXX}"
+.endif
+
# dirty hack
post-configure:
@${CP} -f ${WRKSRC}/include/sys.ho ${WRKSRC}/include/sys.h
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>