Use -Wl,-z,wxneeded instead of -z wxneeded such that this builds with base
authorkettenis <kettenis@openbsd.org>
Tue, 28 Sep 2021 08:51:17 +0000 (08:51 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 28 Sep 2021 08:51:17 +0000 (08:51 +0000)
gcc.

ok patrick@, millert@, jca@

regress/sys/uvm/wx_syscall/Makefile
regress/usr.bin/lastcomm/Makefile

index 4c629ec..196bdf5 100644 (file)
@@ -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=       -wxneeded
+LDFLAGS=       -Wl,-z,wxneeded
 
 run-regress-wx_syscall: wx_syscall
        ! ./wx_syscall
index a91b745..f05b16e 100644 (file)
@@ -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=       -wxneeded
+LDADD_syscallwx=       -Wl,-z,wxneeded
 CLEANFILES=            regress-*
 
 REGRESS_SETUP =                ${PROGS}