Only use -z noexecstack for these explicit arches: i386, amd64, powerpc

and powerpc64.  Other arches currently do not support this feature.

Reminded by:	kib
This commit is contained in:
Dimitry Andric 2011-02-16 21:04:47 +00:00
parent 19e3d7d70b
commit a4227c6a5b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218749

View File

@ -7,7 +7,7 @@ SRCS= uathload.c ar5523.bin
CLEANFILES= ar5523.bin CLEANFILES= ar5523.bin
.if ${MACHINE_ARCH} != "ia64" && ${MACHINE_ARCH} != "sparc64" .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64"
LDFLAGS+= -Wl,-z,noexecstack LDFLAGS+= -Wl,-z,noexecstack
.endif .endif