1 # $NetBSD: buildlink3.mk,v 1.6 2013/03/01 15:06:09 jperkin Exp $
3 BUILDLINK_TREE
+= gcc48-libs
5 .if
!defined
(GCC48_LIBS_BUILDLINK3_MK
)
6 GCC48_LIBS_BUILDLINK3_MK
:=
8 .if
!empty
(USE_PKGSRC_GCC_RUNTIME
:M
[Yy
][Ee
][Ss
])
9 BUILDLINK_API_DEPENDS.gcc48-libs
+= gcc48-libs
>=4.8.0
11 BUILDLINK_API_DEPENDS.gcc48-libs
+= {gcc48
,gcc48-libs
}>=4.8.0
13 BUILDLINK_PKGSRCDIR.gcc48-libs
= ..
/..
/lang
/gcc48-libs
14 BUILDLINK_DEPMETHOD.gcc48-libs?
= full
16 BUILDLINK_PASSTHRU_DIRS
+= ${BUILDLINK_PREFIX.gcc48-libs
}/gcc48
18 BUILDLINK_FILES.gcc48-libs
= #empty
19 BUILDLINK_AUTO_VARS.gcc48-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.gcc48-libs
}/${GCC_SUBPREFIX}
28 GCC_TARGET_MACHINE?
= ${MACHINE_GNU_PLATFORM}
30 # XXX: Using %M requires patched version of gcc (e.g. lang/gcc48)
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 # GCC48_LIBS_BUILDLINK3_MK
43 BUILDLINK_TREE
+= -gcc48-libs