Skip to content

Commit c0d4dfc

Browse files
committed
Add build option
1 parent 5513240 commit c0d4dfc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

auto.def

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ define VERSION $maj_ver.$med_ver.$min_ver[expr {$dev_ver ? ".$dev_ver" : ""}]
1313
# Add any user options here
1414
options {
1515
pkgconfigdir:WHERE => "path to the directory where to install pc files"
16+
1617
with-ldns => "add support for libldns"
1718
with-libarchive.pc => "build with libarchive getting flags via pc files"
1819
with-coverage => "build with llvm coverage support"
1920
with-asan => "build with libasan support"
2021
with-ubsan => "Build with libubsan support"
22+
without-procctl => "build explicitly without procctl hardening"
2123
default-format:txz => "Default compression format: tzst, txz (default), tbz, tar"
2224
}
2325

@@ -217,7 +219,11 @@ if {![cc-check-functions __res_query]} {
217219
}
218220

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

222228
# for compat
223229
cc-check-includes dirent.h

0 commit comments

Comments
 (0)