From a4227c6a5bb7a76620c8add48f1f684500cb0a57 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 16 Feb 2011 21:04:47 +0000 Subject: [PATCH] Only use -z noexecstack for these explicit arches: i386, amd64, powerpc and powerpc64. Other arches currently do not support this feature. Reminded by: kib --- usr.sbin/uathload/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/uathload/Makefile b/usr.sbin/uathload/Makefile index ee06967d504e..d7b808cc59e8 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