gcc.
ok patrick@, millert@, jca@
-# $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)
.endif
PROG= wx_syscall
-LDFLAGS= -z wxneeded
+LDFLAGS= -Wl,-z,wxneeded
run-regress-wx_syscall: wx_syscall
! ./wx_syscall
-# $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
PROGS= crash trapstack callstack syscallwx unveil
WARNINGS= Yes
-LDADD_syscallwx= -z wxneeded
+LDADD_syscallwx= -Wl,-z,wxneeded
CLEANFILES= regress-*
REGRESS_SETUP = ${PROGS}