summaryrefslogtreecommitdiff
path: root/lang/gcc44
diff options
context:
space:
mode:
authorhans <hans>2011-07-14 19:54:55 +0000
committerhans <hans>2011-07-14 19:54:55 +0000
commitfcd32d4cb5f22f233243f5b034129a2cf27811d6 (patch)
treed8089236fafea7507899e134f47be9cae6c84ea6 /lang/gcc44
parent7fcae2e8540ab3ccce110fc4e1b8baa9cb525848 (diff)
downloadpkgsrc-fcd32d4cb5f22f233243f5b034129a2cf27811d6.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/gcc44')
-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