summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2005-03-01 23:03:04 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2005-03-01 23:03:04 +0000
commit193d5ae45e1ec030a8d358c5f194e0613420f403 (patch)
tree03692eec49b2f6c987a36e568548c5e348717941 /print
parent6739acbbc4d5893d1a9e61fe9ba6fc21c566098b (diff)
downloadpkgsrc-193d5ae45e1ec030a8d358c5f194e0613420f403.tar.gz
add -lgcc_s on solaris with gcc
Diffstat (limited to 'print')
-rw-r--r--print/teTeX-bin/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/print/teTeX-bin/Makefile b/print/teTeX-bin/Makefile
index 61d6b9fa2f1..05aa155c482 100644
--- a/print/teTeX-bin/Makefile
+++ b/print/teTeX-bin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.61 2005/02/04 01:48:51 minskim Exp $
+# $NetBSD: Makefile,v 1.62 2005/03/01 23:03:04 dmcmahill Exp $
DISTNAME= tetex-src-${TETEX_BIN_VERS}
PKGNAME= teTeX-bin-${TETEX_BIN_VERS}
@@ -29,6 +29,16 @@ REPLACE_PERL= texk/xdvik/t1mapper \
CONFLICTS+= coreutils-[0-9]*
.endif
+.include "../../mk/compiler.mk"
+#
+.if ${OPSYS} == "SunOS"
+# If we are using gcc3, we need to link against libgcc_s, too. This
+# ensures modules can resolve symbols they require from gcc.
+. if !empty(CC_VERSION:Mgcc-3*)
+LDFLAGS+= -lgcc_s
+. endif
+.endif
+
.if defined(PAPERSIZE)
LOWER_PAPERSIZE!= ${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]'
.endif