summaryrefslogtreecommitdiffstats
path: root/usr.sbin/uathload
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-02-16 21:04:47 +0000
committerdim <dim@FreeBSD.org>2011-02-16 21:04:47 +0000
commitafe2e8ee75c40174ea31eb803bd8910966de300e (patch)
treefaf9d224c91d8876762ad04170a8e05f7d5784eb /usr.sbin/uathload
parent08fa1606e880e4a9b647e294fea72882692d42ed (diff)
downloadFreeBSD-src-afe2e8ee75c40174ea31eb803bd8910966de300e.zip
FreeBSD-src-afe2e8ee75c40174ea31eb803bd8910966de300e.tar.gz
Only use -z noexecstack for these explicit arches: i386, amd64, powerpc
and powerpc64. Other arches currently do not support this feature. Reminded by: kib
Diffstat (limited to 'usr.sbin/uathload')
-rw-r--r--usr.sbin/uathload/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/uathload/Makefile b/usr.sbin/uathload/Makefile
index ee06967..d7b808c 100644
--- a/usr.sbin/uathload/Makefile
+++ b/usr.sbin/uathload/Makefile
@@ -7,7 +7,7 @@ SRCS= uathload.c 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
.endif
OpenPOWER on IntegriCloud