From 160730f8b6c5b7bfac2583a4ab45786bf2fd023f Mon Sep 17 00:00:00 2001 From: grant Date: Fri, 18 Jul 2003 11:14:43 +0000 Subject: only use libstdc++ and libm if we aren't using sunpro or mipspro. --- textproc/sablotron/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'textproc/sablotron') 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" -- cgit v1.2.3