pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/teTeX-bin add -lgcc_s on solaris with gcc



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4f135078b131
branches:  trunk
changeset: 489994:4f135078b131
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Tue Mar 01 23:03:04 2005 +0000

description:
add -lgcc_s on solaris with gcc

diffstat:

 print/teTeX-bin/Makefile |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 609d8028f2df -r 4f135078b131 print/teTeX-bin/Makefile
--- a/print/teTeX-bin/Makefile  Tue Mar 01 22:59:16 2005 +0000
+++ b/print/teTeX-bin/Makefile  Tue Mar 01 23:03:04 2005 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index