-
Notifications
You must be signed in to change notification settings - Fork 160
/
Copy pathbuildlink3.mk
46 lines (35 loc) · 1.43 KB
/
buildlink3.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# $NetBSD: buildlink3.mk,v 1.1 2020/09/02 16:12:22 ryoon Exp $
BUILDLINK_TREE+= gcc9-libs
.if !defined(GCC9_LIBS_BUILDLINK3_MK)
GCC9_LIBS_BUILDLINK3_MK:=
.if !empty(USE_PKGSRC_GCC_RUNTIME:M[Yy][Ee][Ss])
BUILDLINK_API_DEPENDS.gcc9-libs+= gcc9-libs>=9.3.0
.else
BUILDLINK_API_DEPENDS.gcc9-libs+= {gcc9,gcc9-libs}>=9.3.0
.endif
BUILDLINK_PKGSRCDIR.gcc9-libs= ../../lang/gcc9-libs
BUILDLINK_DEPMETHOD.gcc9-libs?= full
BUILDLINK_PASSTHRU_DIRS+= ${BUILDLINK_PREFIX.gcc9-libs}/gcc9
BUILDLINK_FILES.gcc9-libs= #empty
BUILDLINK_AUTO_VARS.gcc9-libs= no
.if !empty(USE_PKGSRC_GCC_RUNTIME:M[Yy][Ee][Ss])
# Use custom specs file to ensure we link against pkgsrc libraries.
SPECS_LIBGCC= ${WRAPPER_DIR}/specs.libgcc
WRAPPER_TARGETS+= ${SPECS_LIBGCC}
LIBGCC_SUBPREFIX= gcc9
LIBGCC_PREFIX= ${BUILDLINK_PREFIX.gcc9-libs}/${LIBGCC_SUBPREFIX}
GCC_TARGET_MACHINE?= ${MACHINE_GNU_PLATFORM}
${SPECS_LIBGCC}:
@${ECHO} "*link_libgcc:" >${SPECS_LIBGCC}
@${ECHO} "%D ${LINKER_RPATH_FLAG}${LIBGCC_PREFIX}/${GCC_TARGET_MACHINE}/lib/%M" >>${SPECS_LIBGCC}
_WRAP_EXTRA_ARGS.CC+= -specs=${SPECS_LIBGCC}
_WRAP_EXTRA_ARGS.CXX+= -specs=${SPECS_LIBGCC}
_WRAP_EXTRA_ARGS.FC+= -specs=${SPECS_LIBGCC}
CWRAPPERS_APPEND.cc+= -specs=${SPECS_LIBGCC}
CWRAPPERS_APPEND.cxx+= -specs=${SPECS_LIBGCC}
CWRAPPERS_APPEND.f77+= -specs=${SPECS_LIBGCC}
.endif
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.endif # GCC9_LIBS_BUILDLINK3_MK
BUILDLINK_TREE+= -gcc9-libs