Tue Oct 12 07:48:53 2021 UTC ()
mk: Register support for RELRO on NetBSD/powerpc. Tested on macppc.


(nia)
diff -r1.66 -r1.67 pkgsrc/mk/platform/NetBSD.mk

cvs diff -r1.66 -r1.67 pkgsrc/mk/platform/NetBSD.mk (expand / switch to unified diff)

--- pkgsrc/mk/platform/NetBSD.mk 2021/09/27 16:13:26 1.66
+++ pkgsrc/mk/platform/NetBSD.mk 2021/10/12 07:48:53 1.67
@@ -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"
7CPP= /usr/bin/cpp 7CPP= /usr/bin/cpp
8.endif 8.endif
9ECHO_N?= ${ECHO} -n 9ECHO_N?= ${ECHO} -n
10IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake 10IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
11PKGLOCALEDIR?= share 11PKGLOCALEDIR?= share
12PS?= /bin/ps 12PS?= /bin/ps
13SU?= /usr/bin/su 13SU?= /usr/bin/su
14TYPE?= type # Shell builtin 14TYPE?= 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