Use AFLAGS when building syscall stubs. Drop AINC wich isn't used.
authorkettenis <kettenis@openbsd.org>
Sat, 26 Jun 2021 14:46:48 +0000 (14:46 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 26 Jun 2021 14:46:48 +0000 (14:46 +0000)
ok deraadt@

libexec/ld.so/Makefile

index 76fb8ac..1fe64fd 100644 (file)
@@ -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")