Always set _USE_GCC_SHLIB on SunOS, just like the older versions of gcc do.

This commit is contained in:
hans 2013-01-31 23:12:53 +00:00
parent a2e8bed9ae
commit b654e334eb

View file

@ -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