summaryrefslogtreecommitdiff
path: root/textproc/sablotron
diff options
context:
space:
mode:
authorgrant <grant>2003-07-18 12:39:17 +0000
committergrant <grant>2003-07-18 12:39:17 +0000
commitf340080920cb550c645d9adb081bdffe70a20670 (patch)
treee7071e7efe78db89b8d46ce7841e4609b8b5671a /textproc/sablotron
parent4ca4e77b018bd64ebabf37e5909d99135e4f5154 (diff)
downloadpkgsrc-f340080920cb550c645d9adb081bdffe70a20670.tar.gz
pass libs in LIBS, not LDFLAGS. link with libstdc++ and libm if gcc,
libCrun and libm if SunPro. fixes build with SunPro.
Diffstat (limited to 'textproc/sablotron')
-rw-r--r--textproc/sablotron/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/textproc/sablotron/Makefile b/textproc/sablotron/Makefile
index 5403a7918d3..0576eb89fc8 100644
--- a/textproc/sablotron/Makefile
+++ b/textproc/sablotron/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2003/07/18 11:14:43 grant Exp $
+# $NetBSD: Makefile,v 1.14 2003/07/18 12:39:17 grant Exp $
DISTNAME= Sablot-0.96
PKGNAME= sablotron-0.96
@@ -17,14 +17,17 @@ USE_GMAKE= YES
USE_LIBTOOL= YES
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
-LDFLAGS+= -liconv
+LIBS+= -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
+# 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.
+.if defined(USE_SUNPRO)
+LIBS+= -lCrun -lm
+.elif !defined(USE_MIPSPRO)
+LIBS+= -lstdc++ -lm
.endif
.include "../../converters/libiconv/buildlink2.mk"