pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/gcc47 Add the lang/gcc47/buildlink3.mk file
details: https://anonhg.NetBSD.org/pkgsrc/rev/a1a87fa8a795
branches: trunk
changeset: 602628:a1a87fa8a795
user: sbd <sbd%pkgsrc.org@localhost>
date: Mon Apr 16 04:55:17 2012 +0000
description:
Add the lang/gcc47/buildlink3.mk file
diffstat:
lang/gcc47/buildlink3.mk | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 46 insertions(+), 0 deletions(-)
diffs (50 lines):
diff -r d3bd45954c9d -r a1a87fa8a795 lang/gcc47/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc47/buildlink3.mk Mon Apr 16 04:55:17 2012 +0000
@@ -0,0 +1,46 @@
+# $NetBSD: buildlink3.mk,v 1.1 2012/04/16 04:55:17 sbd Exp $
+
+BUILDLINK_TREE+= gcc47
+
+.if !defined(GCC47_BUILDLINK3_MK)
+GCC47_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.gcc47+= gcc47>=${_GCC_REQD}
+BUILDLINK_ABI_DEPENDS.gcc47?= gcc47>=4.7.0
+BUILDLINK_PKGSRCDIR.gcc47?= ../../lang/gcc47
+
+FIND_PREFIX:= BUILDLINK_PREFIX.gcc47=gcc47
+.include "../../mk/find-prefix.mk"
+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.fast.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.gcc47+= full
+.else
+BUILDLINK_DEPMETHOD.gcc47?= build
+.endif
+
+pkgbase := gcc47
+.include "../../mk/pkg-build-options.mk"
+.if !empty(PKG_BUILD_OPTIONS.gcc47:Mgcc-java) || \
+ !empty(PKG_BUILD_OPTIONS.gcc47:Mgcc-go)
+.include "../../mk/pthread.buildlink3.mk"
+.endif
+.if !empty(PKG_BUILD_OPTIONS.gcc47:Mgcc-java)
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.endif
+
+.endif # GCC46_BUILDLINK3_MK
+BUILDLINK_TREE+= -gcc47
Home |
Main Index |
Thread Index |
Old Index