1 # $NetBSD: buildlink3.mk,v 1.5 2013/03/01 15:03:25 jperkin Exp $
3 BUILDLINK_TREE
+= gcc47-libs
5 .if
!defined
(GCC47_LIBS_BUILDLINK3_MK
)
6 GCC47_LIBS_BUILDLINK3_MK
:=
8 .if
!empty
(USE_PKGSRC_GCC_RUNTIME
:M
[Yy
][Ee
][Ss
])
9 BUILDLINK_API_DEPENDS.gcc47-libs
+= gcc47-libs
>=4.7.0
11 BUILDLINK_API_DEPENDS.gcc47-libs
+= {gcc47
,gcc47-libs
}>=4.7.0
13 BUILDLINK_PKGSRCDIR.gcc47-libs
= ..
/..
/lang
/gcc47-libs
14 BUILDLINK_DEPMETHOD.gcc47-libs?
= full
16 BUILDLINK_PASSTHRU_DIRS
+= ${BUILDLINK_PREFIX.gcc47-libs
}/gcc47
18 BUILDLINK_FILES.gcc47-libs
= #empty
19 BUILDLINK_AUTO_VARS.gcc47-libs
= no
21 .if
!empty
(USE_PKGSRC_GCC_RUNTIME
:M
[Yy
][Ee
][Ss
])
22 # Use custom specs file to ensure we link against pkgsrc libraries.
23 SPECS_LIBGCC
= ${WRAPPER_DIR}/specs.libgcc
24 WRAPPER_TARGETS
+= ${SPECS_LIBGCC}
27 GCC_PREFIX
= ${BUILDLINK_PREFIX.gcc47-libs
}/${GCC_SUBPREFIX}
28 GCC_TARGET_MACHINE?
= ${MACHINE_GNU_PLATFORM}
30 # XXX: Using %M requires patched version of gcc (e.g. lang/gcc47)
32 @
${ECHO} "*link_libgcc:" >${SPECS_LIBGCC}
33 @
${ECHO} "%D $(LINKER_RPATH_FLAG)${GCC_PREFIX}/${GCC_TARGET_MACHINE}/lib/%M $(LINKER_RPATH_FLAG)${GCC_PREFIX}/lib/%M" >>${SPECS_LIBGCC}
35 _WRAP_EXTRA_ARGS.CC
+= -specs
${SPECS_LIBGCC}
36 _WRAP_EXTRA_ARGS.CXX
+= -specs
${SPECS_LIBGCC}
37 _WRAP_EXTRA_ARGS.FC
+= -specs
${SPECS_LIBGCC}
40 .
include "../../mk/dlopen.buildlink3.mk"
41 .
include "../../mk/pthread.buildlink3.mk"
42 .
endif # GCC47_LIBS_BUILDLINK3_MK
43 BUILDLINK_TREE
+= -gcc47-libs