summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorsbd <sbd>2012-09-13 10:17:14 +0000
committersbd <sbd>2012-09-13 10:17:14 +0000
commitcb7dedfd4a75e45f59287b7acded843291b2414a (patch)
tree668f0105f277a7057456507c57cab04427edc3a0 /mk
parentec01bf0a478718233db8547f0b94eeed30311e28 (diff)
downloadpkgsrc-cb7dedfd4a75e45f59287b7acded843291b2414a.tar.gz
Move the setting of _USE_GCC_SHLIB=yes on SunOS from the gcc buildlink3 to
mk/compiler/gcc.mk
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler/gcc.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index 391e252218e..9a6496e7682 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.125 2012/07/27 10:34:00 jperkin Exp $
+# $NetBSD: gcc.mk,v 1.126 2012/09/13 10:17:14 sbd Exp $
#
# This is the compiler definition for the GNU Compiler Collection.
#
@@ -484,6 +484,13 @@ _USE_GCC_SHLIB?= yes
. endif
.endif
+# 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.
+.if ${OPSYS} == "SunOS"
+_USE_GCC_SHLIB= yes
+.endif
+
.if !empty(USE_NATIVE_GCC:M[yY][eE][sS]) && !empty(_IS_BUILTIN_GCC:M[yY][eE][sS])
_USE_PKGSRC_GCC= no
.elif !empty(USE_PKGSRC_GCC:M[yY][eE][sS])