aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/configure
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-07-19 06:05:16 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-07-19 06:05:16 +0000
commitf0143f309111bca83659f897fa5c7c42548890ed (patch)
treea4e4f250b02548ce4781417e928a293aee002be7 /configure
parent0c627ea8c3cc862ae75011fd19486724efdf240b (diff)
downloadmandoc-f0143f309111bca83659f897fa5c7c42548890ed.tar.gz
mandoc-f0143f309111bca83659f897fa5c7c42548890ed.tar.zst
mandoc-f0143f309111bca83659f897fa5c7c42548890ed.zip
Do not fork and exec gunzip(1), just link with libz instead.
As discussed with deraadt@, that's cleaner and will help tame(2). Something like this was also suggested earlier by bapt at FreeBSD. Minus 50 lines of code, deleting one interface function (mparse_wait), no functional change intended.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 59a28f92..7a3bb306 100755
--- a/configure
+++ b/configure
@@ -239,9 +239,9 @@ fi
# --- DBLIB ---
if [ ${BUILD_DB} -eq 0 ]; then
- DBLIB=
+ DBLIB="-lz"
elif [ -z "${DBLIB}" ]; then
- DBLIB="${DETECTLIB}"
+ DBLIB="${DETECTLIB} -lz"
echo "DBLIB=\"${DBLIB}\"" 1>&2
echo "DBLIB=\"${DBLIB}\"" 1>&3
echo 1>&3