diff options
author | hans <hans@pkgsrc.org> | 2013-01-31 23:12:53 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2013-01-31 23:12:53 +0000 |
commit | b654e334eb814ce03071e0a9b209509dbd7f4ac1 (patch) | |
tree | 0325174ee12ccbfb590ad09e12219a5392e60b0e /lang | |
parent | a2e8bed9ae2aac64491d661acc404bebcdde4e1b (diff) | |
download | pkgsrc-b654e334eb814ce03071e0a9b209509dbd7f4ac1.tar.gz |
Always set _USE_GCC_SHLIB on SunOS, just like the older versions of gcc do.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gcc47/buildlink3.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lang/gcc47/buildlink3.mk b/lang/gcc47/buildlink3.mk index 200b4f4c0d1..fdd56d8d931 100644 --- a/lang/gcc47/buildlink3.mk +++ b/lang/gcc47/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.6 2012/09/13 10:17:14 sbd Exp $ +# $NetBSD: buildlink3.mk,v 1.7 2013/01/31 23:12:53 hans Exp $ BUILDLINK_TREE+= gcc47 @@ -17,6 +17,14 @@ BUILDLINK_PASSTHRU_DIRS+= ${BUILDLINK_PREFIX.gcc47}/gcc47 BUILDLINK_FILES.gcc47= #empty BUILDLINK_AUTO_VARS.gcc47= no +# 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) DEPENDS+= {gcc47,gcc47-libs}>=${_GCC_REQD}:../../lang/gcc47-libs |