| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: NetBSD.mk,v 1.66 2021/09/27 16:13:26 nia Exp $ | | 1 | # $NetBSD: NetBSD.mk,v 1.67 2021/10/12 07:48:53 nia Exp $ |
2 | # | | 2 | # |
3 | # Variable definitions for the NetBSD operating system. | | 3 | # Variable definitions for the NetBSD operating system. |
4 | | | 4 | |
5 | # Needed for 1.6.1 and earlier due to rpcgen bugs and paths | | 5 | # Needed for 1.6.1 and earlier due to rpcgen bugs and paths |
6 | .if defined(CPP) && ${CPP} == "cpp" | | 6 | .if defined(CPP) && ${CPP} == "cpp" |
7 | CPP= /usr/bin/cpp | | 7 | CPP= /usr/bin/cpp |
8 | .endif | | 8 | .endif |
9 | ECHO_N?= ${ECHO} -n | | 9 | ECHO_N?= ${ECHO} -n |
10 | IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake | | 10 | IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake |
11 | PKGLOCALEDIR?= share | | 11 | PKGLOCALEDIR?= share |
12 | PS?= /bin/ps | | 12 | PS?= /bin/ps |
13 | SU?= /usr/bin/su | | 13 | SU?= /usr/bin/su |
14 | TYPE?= type # Shell builtin | | 14 | TYPE?= type # Shell builtin |
| @@ -140,27 +140,28 @@ _OPSYS_SUPPORTS_FORTIFY=yes | | | @@ -140,27 +140,28 @@ _OPSYS_SUPPORTS_FORTIFY=yes |
140 | (${MACHINE_ARCH} == "aarch64") || \ | | 140 | (${MACHINE_ARCH} == "aarch64") || \ |
141 | (${MACHINE_ARCH} == "aarch64eb") || \ | | 141 | (${MACHINE_ARCH} == "aarch64eb") || \ |
142 | (${MACHINE_ARCH} == "sparc64") || \ | | 142 | (${MACHINE_ARCH} == "sparc64") || \ |
143 | (${MACHINE_ARCH} == "m68k") || \ | | 143 | (${MACHINE_ARCH} == "m68k") || \ |
144 | (!empty(MACHINE_ARCH:Mearm*)) || \ | | 144 | (!empty(MACHINE_ARCH:Mearm*)) || \ |
145 | (!empty(MACHINE_ARCH:Mmips*)) | | 145 | (!empty(MACHINE_ARCH:Mmips*)) |
146 | _OPSYS_SUPPORTS_MKPIE= yes | | 146 | _OPSYS_SUPPORTS_MKPIE= yes |
147 | .endif | | 147 | .endif |
148 | | | 148 | |
149 | # Register support for RELRO on supported architectures | | 149 | # Register support for RELRO on supported architectures |
150 | .if (${MACHINE_ARCH} == "i386") || \ | | 150 | .if (${MACHINE_ARCH} == "i386") || \ |
151 | (${MACHINE_ARCH} == "x86_64") || \ | | 151 | (${MACHINE_ARCH} == "x86_64") || \ |
152 | (${MACHINE_ARCH} == "aarch64") || \ | | 152 | (${MACHINE_ARCH} == "aarch64") || \ |
153 | (${MACHINE_ARCH} == "aarch64eb") | | 153 | (${MACHINE_ARCH} == "aarch64eb") || \ |
| | | 154 | (${MACHINE_ARCH} == "powerpc") |
154 | _OPSYS_SUPPORTS_RELRO= yes | | 155 | _OPSYS_SUPPORTS_RELRO= yes |
155 | .endif | | 156 | .endif |
156 | | | 157 | |
157 | # Register support for REPRO (with GCC) | | 158 | # Register support for REPRO (with GCC) |
158 | _OPSYS_SUPPORTS_MKREPRO= yes | | 159 | _OPSYS_SUPPORTS_MKREPRO= yes |
159 | | | 160 | |
160 | # Register support for SSP on most architectures (with GCC) | | 161 | # Register support for SSP on most architectures (with GCC) |
161 | .if (${MACHINE_ARCH} != "alpha") && \ | | 162 | .if (${MACHINE_ARCH} != "alpha") && \ |
162 | (${MACHINE_ARCH} != "hppa") && \ | | 163 | (${MACHINE_ARCH} != "hppa") && \ |
163 | (${MACHINE_ARCH} != "ia64") && \ | | 164 | (${MACHINE_ARCH} != "ia64") && \ |
164 | (${MACHINE_ARCH} != "mips") | | 165 | (${MACHINE_ARCH} != "mips") |
165 | _OPSYS_SUPPORTS_SSP= yes | | 166 | _OPSYS_SUPPORTS_SSP= yes |
166 | .endif | | 167 | .endif |