From: kettenis Date: Tue, 28 Sep 2021 08:51:17 +0000 (+0000) Subject: Use -Wl,-z,wxneeded instead of -z wxneeded such that this builds with base X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bf27995b5709fe3c496157249610d5207acd6484;p=openbsd Use -Wl,-z,wxneeded instead of -z wxneeded such that this builds with base gcc. ok patrick@, millert@, jca@ --- diff --git a/regress/sys/uvm/wx_syscall/Makefile b/regress/sys/uvm/wx_syscall/Makefile index 4c629ecf738..196bdf53e1c 100644 --- a/regress/sys/uvm/wx_syscall/Makefile +++ b/regress/sys/uvm/wx_syscall/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2019/09/20 12:45:43 bluhm Exp $ +# $OpenBSD: Makefile,v 1.3 2021/09/28 08:51:17 kettenis Exp $ # The regression test binary must be run on a wxallowed filesystem # to verify correct behaviour (it should crash) @@ -17,7 +17,7 @@ regress: .endif PROG= wx_syscall -LDFLAGS= -z wxneeded +LDFLAGS= -Wl,-z,wxneeded run-regress-wx_syscall: wx_syscall ! ./wx_syscall diff --git a/regress/usr.bin/lastcomm/Makefile b/regress/usr.bin/lastcomm/Makefile index a91b745311b..f05b16e083d 100644 --- a/regress/usr.bin/lastcomm/Makefile +++ b/regress/usr.bin/lastcomm/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.9 2020/12/16 23:10:48 bluhm Exp $ +# $OpenBSD: Makefile,v 1.10 2021/09/28 08:51:18 kettenis Exp $ # Start with a clean /var/account/acct accounting file and turn on # process accounting with accton(8). Each test executes a command @@ -22,7 +22,7 @@ REGRESS_EXPECTED_FAILURES += run-callstack run-syscallwx PROGS= crash trapstack callstack syscallwx unveil WARNINGS= Yes -LDADD_syscallwx= -z wxneeded +LDADD_syscallwx= -Wl,-z,wxneeded CLEANFILES= regress-* REGRESS_SETUP = ${PROGS}