summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2011-07-14 19:54:55 +0000
committerhans <hans@pkgsrc.org>2011-07-14 19:54:55 +0000
commitde3eec6becd3cb5fe6db7aea1c4587c72f41ab77 (patch)
treed8089236fafea7507899e134f47be9cae6c84ea6 /lang
parentd2c49e5c20f6c9f3b22703275362437a25ecb3a7 (diff)
downloadpkgsrc-de3eec6becd3cb5fe6db7aea1c4587c72f41ab77.tar.gz
When not using the GNU linker, gcc will always link shared libraries
against the shared version of libgcc. Always enable _USE_GCC_SHILB on platforms that don't use the GNU linker, such as SunOS.
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc44/buildlink3.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/lang/gcc44/buildlink3.mk b/lang/gcc44/buildlink3.mk
index f9023f1927a..b49eb1fcb8a 100644
--- a/lang/gcc44/buildlink3.mk
+++ b/lang/gcc44/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.5 2011/04/22 13:41:57 obache Exp $
+# $NetBSD: buildlink3.mk,v 1.6 2011/07/14 19:54:55 hans Exp $
BUILDLINK_TREE+= gcc44
@@ -49,6 +49,14 @@ BUILDLINK_FILES_CMD.gcc44= \
${FIND} ${_GCC44_SUBDIR}/bin ${_GCC44_SUBDIR}/libexec ${_GCC44_SUBDIR}/lib \( -type f -o -type l \) -print)
BUILDLINK_FNAME_TRANSFORM.gcc44= -e s:buildlink:buildlink/gcc44:
+# When not using the GNU linker, gcc will always link shared libraries
+# against the shared version of libgcc. Always enable _USE_GCC_SHILB on
+# platforms that don't use the GNU linker, such as SunOS.
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "SunOS"
+_USE_GCC_SHLIB= yes
+.endif
+
# Packages that link against shared libraries need a full dependency.
.if defined(_USE_GCC_SHLIB)
BUILDLINK_DEPMETHOD.gcc44+= full