summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2005-08-20 11:06:07 +0000
committergrant <grant@pkgsrc.org>2005-08-20 11:06:07 +0000
commitf9807a48642e1463bd6234fc7abf530fa18ab21d (patch)
tree3df78241fe397f02a969d881c92d0f75a8929789
parent7ecfbd51b9681c07b70a7ac660e1779e152c1783 (diff)
downloadpkgsrc-f9807a48642e1463bd6234fc7abf530fa18ab21d.tar.gz
- USE_LANGUAGES=c++
- strip -lstdc++ if not using gcc
-rw-r--r--www/cgicc/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/www/cgicc/Makefile b/www/cgicc/Makefile
index 4b2882f214f..1d0f7a1b0e2 100644
--- a/www/cgicc/Makefile
+++ b/www/cgicc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2005/05/22 20:08:44 jlam Exp $
+# $NetBSD: Makefile,v 1.9 2005/08/20 11:06:07 grant Exp $
DISTNAME= cgicc-3.1.5
PKGREVISION= 1
@@ -10,6 +10,7 @@ HOMEPAGE= http://www.gnu.org/software/cgicc/cgicc.html
COMMENT= C++ compliant CGI applications libraries
USE_TOOLS+= gmake
+USE_LANGUAGES= c++
USE_LIBTOOL= YES
GNU_CONFIGURE= YES
@@ -17,4 +18,10 @@ INFO_FILES= cgicc.info
LTCONFIG_OVERRIDE= ${WRKSRC}/support/ltconfig ${WRKSRC}/example/ltconfig
+.include "../../mk/compiler.mk"
+
+.if empty(CC_VERSION:Mgcc)
+BUILDLINK_TRANSFORM+= rm:-lstdc++
+.endif
+
.include "../../mk/bsd.pkg.mk"