| @@ -1,35 +1,31 @@ | | | @@ -1,35 +1,31 @@ |
1 | # $NetBSD: Makefile,v 1.90 2021/09/30 20:34:17 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.91 2021/10/15 19:36:35 tnn Exp $ |
2 | | | 2 | |
3 | BOOST_PACKAGE= libs | | 3 | BOOST_PACKAGE= libs |
4 | BOOST_COMMENT= (binary libraries) | | 4 | BOOST_COMMENT= (binary libraries) |
5 | BOOST_CONFIG= installed | | 5 | BOOST_CONFIG= installed |
6 | BOOST_INSTALL_LIBS= yes | | 6 | BOOST_INSTALL_LIBS= yes |
7 | | | 7 | |
8 | .include "../../meta-pkgs/boost/Makefile.common" | | 8 | .include "../../meta-pkgs/boost/Makefile.common" |
9 | | | 9 | |
10 | INSTALLATION_DIRS+= lib | | 10 | INSTALLATION_DIRS+= lib |
11 | | | 11 | |
12 | BJAM_ARGS+= --without-python | | 12 | BJAM_ARGS+= --without-python |
13 | PLIST_VARS+= backtrace context fiber log longdbl | | 13 | PLIST_VARS+= backtrace context fiber log longdbl |
14 | | | 14 | |
15 | .include "../../mk/compiler.mk" | | 15 | .include "../../mk/compiler.mk" |
16 | | | 16 | |
17 | .if (${OPSYS} == "NetBSD" && \ | | 17 | # pch enabled build is generally fragile and breaks with RELRO |
18 | ((${MACHINE_ARCH} == "i386") || \ | | | |
19 | (!empty(MACHINE_ARCH:Mearm*) && !empty(PKGSRC_COMPILER:Mgcc)))) || \ | | | |
20 | (!empty(MACHINE_PLATFORM:MNetBSD-[89].*-x86_64) && !empty(PKGSRC_COMPILER:Mgcc)) | | | |
21 | BJAM_ARGS+= pch=off | | 18 | BJAM_ARGS+= pch=off |
22 | .endif | | | |
23 | | | 19 | |
24 | .if !empty(MACHINE_ARCH:Malpha) || !empty(MACHINE_ARCH:Mm68k) || !empty(MACHINE_ARCH:Msparc64) | | 20 | .if !empty(MACHINE_ARCH:Malpha) || !empty(MACHINE_ARCH:Mm68k) || !empty(MACHINE_ARCH:Msparc64) |
25 | BJAM_ARGS+= --without-context | | 21 | BJAM_ARGS+= --without-context |
26 | BJAM_ARGS+= --without-coroutine | | 22 | BJAM_ARGS+= --without-coroutine |
27 | BJAM_ARGS+= --without-fiber | | 23 | BJAM_ARGS+= --without-fiber |
28 | .else | | 24 | .else |
29 | PLIST.context= yes | | 25 | PLIST.context= yes |
30 | . if !(${OPSYS} == "NetBSD" && !empty(PKGSRC_COMPILER:Mgcc)) && \ | | 26 | . if !(${OPSYS} == "NetBSD" && !empty(PKGSRC_COMPILER:Mgcc)) && \ |
31 | empty(MACHINE_PLATFORM:MDarwin-1[0-4].*-*) | | 27 | empty(MACHINE_PLATFORM:MDarwin-1[0-4].*-*) |
32 | PLIST.fiber= yes | | 28 | PLIST.fiber= yes |
33 | . endif | | 29 | . endif |
34 | .endif | | 30 | .endif |
35 | | | 31 | |