summaryrefslogtreecommitdiff
path: root/textproc/sablotron
diff options
context:
space:
mode:
authorgrant <grant>2003-09-27 10:10:34 +0000
committergrant <grant>2003-09-27 10:10:34 +0000
commit11b3672bf2919652cf97c73bdd66618e3e6578ca (patch)
tree688170888822f76a16fa170994f19a4198536c7c /textproc/sablotron
parent3a7d89c5559b555449a710c9320ac136b182dce0 (diff)
downloadpkgsrc-11b3672bf2919652cf97c73bdd66618e3e6578ca.tar.gz
link against the correct libs when using gcc3.
Diffstat (limited to 'textproc/sablotron')
-rw-r--r--textproc/sablotron/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/textproc/sablotron/Makefile b/textproc/sablotron/Makefile
index 635aa582dc5..5fea164479c 100644
--- a/textproc/sablotron/Makefile
+++ b/textproc/sablotron/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2003/08/29 15:29:29 xtraeme Exp $
+# $NetBSD: Makefile,v 1.18 2003/09/27 10:10:34 grant Exp $
DISTNAME= Sablot-1.0
PKGNAME= ${DISTNAME:S/Sablot/sablotron/}
@@ -26,10 +26,14 @@ LIBS+= ${_BLNK_ICONV_LDFLAGS}
# both libstdc++ and libm are required for gcc 2.95.x, as libstdc++
# does not include the math functions. gcc3 only needs libstdc++.
# SunPro needs libCrun and libm.
+#
+# XXX any extra libs needed on IRIX?
.if defined(USE_SUNPRO)
LIBS+= -lCrun -lm
-.elif !defined(USE_MIPSPRO)
+.elif !empty(CC_VERSION:Mgcc-2*)
LIBS+= -lstdc++ -lm
+.elif !empty(CC_VERSION:Mgcc-3*)
+LIBS+= -lstdc++
.endif
.include "../../converters/libiconv/buildlink2.mk"