| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.72 2022/07/09 08:16:02 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.73 2022/08/06 16:49:59 he Exp $ |
2 | # | | 2 | # |
3 | # when updating this, please also update: | | 3 | # when updating this, please also update: |
4 | # devel/include-what-you-use | | 4 | # devel/include-what-you-use |
5 | # devel/lld | | 5 | # devel/lld |
6 | # devel/lldb | | 6 | # devel/lldb |
7 | # devel/polly | | 7 | # devel/polly |
8 | # lang/clang | | 8 | # lang/clang |
9 | # lang/clang-tools-extra | | 9 | # lang/clang-tools-extra |
10 | # lang/compiler-rt | | 10 | # lang/compiler-rt |
11 | # lang/libcxx | | 11 | # lang/libcxx |
12 | # lang/libcxxabi | | 12 | # lang/libcxxabi |
13 | # lang/libunwind | | 13 | # lang/libunwind |
14 | # parallel/openmp | | 14 | # parallel/openmp |
| @@ -97,36 +97,37 @@ SOEXT= dylib | | | @@ -97,36 +97,37 @@ SOEXT= dylib |
97 | .else | | 97 | .else |
98 | SOEXT= so | | 98 | SOEXT= so |
99 | PLIST.notdylib= yes | | 99 | PLIST.notdylib= yes |
100 | .endif | | 100 | .endif |
101 | PLIST_SUBST+= SOEXT=${SOEXT} | | 101 | PLIST_SUBST+= SOEXT=${SOEXT} |
102 | | | 102 | |
103 | # needs std::atomic with 64-bit CAS | | 103 | # needs std::atomic with 64-bit CAS |
104 | .if ${MACHINE_ARCH} == "i386" | | 104 | .if ${MACHINE_ARCH} == "i386" |
105 | CXXFLAGS+= -march=i586 | | 105 | CXXFLAGS+= -march=i586 |
106 | .endif | | 106 | .endif |
107 | | | 107 | |
108 | .if !empty(MACHINE_ARCH:Mpowerpc*) | | 108 | .if !empty(MACHINE_ARCH:Mpowerpc*) |
109 | # Needed to avoid "relocation truncated to fit: R_PPC_REL24" | | 109 | # Needed to avoid "relocation truncated to fit: R_PPC_REL24" |
110 | CFLAGS+= -mlongcall | | 110 | CFLAGS+= -mlongcall -mno-pltseq |
111 | CXXFLAGS+= -mlongcall | | 111 | CXXFLAGS+= -mlongcall -mno-pltseq |
112 | .endif | | 112 | .endif |
113 | | | 113 | |
114 | .if ${OPSYS} == "NetBSD" | | 114 | .if ${OPSYS} == "NetBSD" |
115 | CMAKE_ARGS+= -DPKGSRC_LLVM_PTHREADLIB=-lpthread | | 115 | CMAKE_ARGS+= -DPKGSRC_LLVM_PTHREADLIB=-lpthread |
116 | .endif | | 116 | .endif |
117 | | | 117 | |
118 | .include "options.mk" | | 118 | .include "options.mk" |
119 | | | 119 | |
120 | # replacing config.guess is required even for cmake. | | 120 | # replacing config.guess is required even for cmake. |
121 | # It is used to detect correct LLVM_HOST_TRIPLE, e.g. for NetBSD/evbarm. | | 121 | # It is used to detect correct LLVM_HOST_TRIPLE, e.g. for NetBSD/evbarm. |
122 | post-extract: | | 122 | post-extract: |
123 | ${MKDIR} ${WRKDIR}/build | | 123 | ${MKDIR} ${WRKDIR}/build |
124 | .for f in config.guess config.sub | | 124 | .for f in config.guess config.sub |
125 | cp ../../mk/gnu-config/${f} ${WRKSRC}/cmake/${f} | | 125 | cp ../../mk/gnu-config/${f} ${WRKSRC}/cmake/${f} |
126 | .endfor | | 126 | .endfor |
127 | | | 127 | |
128 | .include "../../devel/zlib/buildlink3.mk" | | 128 | .include "../../devel/zlib/buildlink3.mk" |
129 | .include "../../lang/python/application.mk" | | 129 | .include "../../lang/python/application.mk" |
130 | .include "../../lang/python/tool.mk" | | 130 | .include "../../lang/python/tool.mk" |
131 | .include "../../textproc/libxml2/buildlink3.mk" | | 131 | .include "../../textproc/libxml2/buildlink3.mk" |
| | | 132 | .include "../../mk/atomic64.mk" |
132 | .include "../../mk/bsd.pkg.mk" | | 133 | .include "../../mk/bsd.pkg.mk" |