summaryrefslogtreecommitdiff
path: root/textproc/sablotron
diff options
context:
space:
mode:
authorgrant <grant>2003-07-18 11:14:43 +0000
committergrant <grant>2003-07-18 11:14:43 +0000
commit160730f8b6c5b7bfac2583a4ab45786bf2fd023f (patch)
tree1e9bbb6f0179346624f90a7ab94708e0e8afe309 /textproc/sablotron
parent4080f251c16dbfc42f40354a79acc0cd034fd118 (diff)
downloadpkgsrc-160730f8b6c5b7bfac2583a4ab45786bf2fd023f.tar.gz
only use libstdc++ and libm if we aren't using sunpro or mipspro.
Diffstat (limited to 'textproc/sablotron')
-rw-r--r--textproc/sablotron/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/textproc/sablotron/Makefile b/textproc/sablotron/Makefile
index 3852ec86fe1..5403a7918d3 100644
--- a/textproc/sablotron/Makefile
+++ b/textproc/sablotron/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2003/07/13 13:53:36 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2003/07/18 11:14:43 grant Exp $
DISTNAME= Sablot-0.96
PKGNAME= sablotron-0.96
@@ -19,9 +19,13 @@ USE_LIBTOOL= YES
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
LDFLAGS+= -liconv
+.include "../../mk/bsd.prefs.mk"
+
# this is required for gcc 2.95.x, where libstdc++ doesn't include the
# math functions. only libstdc++ is required for gcc 3.3.
+.if !defined(USE_SUNPRO) && !defined(USE_MIPSPRO)
LDFLAGS+= -lstdc++ -lm
+.endif
.include "../../converters/libiconv/buildlink2.mk"
.include "../../textproc/expat/buildlink2.mk"