summaryrefslogtreecommitdiff
path: root/libexec/ld.so
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2021-06-26 14:46:49 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2021-06-26 14:46:49 +0000
commitfc43820aa1778b2c68c8bf5b4addc9c94d88bd01 (patch)
tree0e3b2696dd31d1b010d07023f2ad389a10c48670 /libexec/ld.so
parent0a15989cf6491beb098233c5f3fe31c644f79cb0 (diff)
Use AFLAGS when building syscall stubs. Drop AINC wich isn't used.
ok deraadt@
Diffstat (limited to 'libexec/ld.so')
-rw-r--r--libexec/ld.so/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/ld.so/Makefile b/libexec/ld.so/Makefile
index 76fb8acaa89..1fe64fdb9a2 100644
--- a/libexec/ld.so/Makefile
+++ b/libexec/ld.so/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.80 2019/12/02 17:19:25 deraadt Exp $
+# $OpenBSD: Makefile,v 1.81 2021/06/26 14:46:48 kettenis Exp $
SUBDIR=ldconfig ldd
MAN= ld.so.1
@@ -36,8 +36,9 @@ GEN_PREFIX=\t.file "${@:R}.c"\n\#include "SYS.h"
OBJS+=dl_${_i}.o
dl_${_i}.o: SYS.h
printf '${GEN_PREFIX}\nDL_SYSCALL(${_i})\n' | \
- ${CC} ${DEBUG} -c -fPIC ${CFLAGS:M-[ID]*} ${CFLAGS:M-pipe} ${AINC} -P \
- -x assembler-with-cpp - ${DFLAGS} -MF ${.TARGET:R}.d -o ${.TARGET}
+ ${CC} ${DEBUG} -c -fPIC ${CFLAGS:M-[ID]*} ${CFLAGS:M-pipe} \
+ ${AFLAGS} -P -x assembler-with-cpp - ${DFLAGS} -MF \
+ ${.TARGET:R}.d -o ${.TARGET}
.endfor
.if (${MACHINE_ARCH} == "i386")