diff options
author | hans <hans> | 2011-07-14 19:54:55 +0000 |
---|---|---|
committer | hans <hans> | 2011-07-14 19:54:55 +0000 |
commit | 4cdd749fd574af70632d736f93fba9980bbdf326 (patch) | |
tree | d8089236fafea7507899e134f47be9cae6c84ea6 /lang | |
parent | 44fe8c88cb4bbe1a971b91c588e485d3ba72d432 (diff) | |
download | pkgsrc-4cdd749fd574af70632d736f93fba9980bbdf326.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.mk | 10 |
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 |