Skip to content

Commit ac3ec14

Browse files
committed
Add --without-procctl build option to explicitly disable procctl hardening
1 parent 5513240 commit ac3ec14

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

auto.def

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ options {
1818
with-coverage => "build with llvm coverage support"
1919
with-asan => "build with libasan support"
2020
with-ubsan => "Build with libubsan support"
21+
without-procctl => "build explicitly without procctl hardening"
2122
default-format:txz => "Default compression format: tzst, txz (default), tbz, tar"
2223
}
2324

@@ -217,7 +218,11 @@ if {![cc-check-functions __res_query]} {
217218
}
218219

219220
cc-check-includes link.h machine/endian.h osreldate.h readpassphrase.h \
220-
sys/procctl.h sys/statfs.h sys/statvfs.h libutil.h
221+
sys/statfs.h sys/statvfs.h libutil.h
222+
223+
if {![opt-bool without-procctl]} {
224+
cc-check-includes sys/procctl.h
225+
}
221226

222227
# for compat
223228
cc-check-includes dirent.h

0 commit comments

Comments
 (0)