pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/sablotron link against the correct libs when ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/105f32e0d8fd
branches:  trunk
changeset: 462162:105f32e0d8fd
user:      grant <grant%pkgsrc.org@localhost>
date:      Sat Sep 27 10:10:34 2003 +0000

description:
link against the correct libs when using gcc3.

diffstat:

 textproc/sablotron/Makefile |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 79fec1021416 -r 105f32e0d8fd textproc/sablotron/Makefile
--- a/textproc/sablotron/Makefile       Sat Sep 27 09:58:08 2003 +0000
+++ b/textproc/sablotron/Makefile       Sat Sep 27 10:10:34 2003 +0000
@@ -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 @@
 # 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"



Home | Main Index | Thread Index | Old Index