aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/configure
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-07-15 15:08:37 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-07-15 15:08:37 +0000
commita142b09ae91ee2ad981c24c9a48689e623d6a952 (patch)
tree94d85a3bd73cd1255af13afa605a2673c4713aea /configure
parent698b2c49aa208e5c283b2f88e13f9507b597b1fb (diff)
downloadmandoc-a142b09ae91ee2ad981c24c9a48689e623d6a952.tar.gz
mandoc-a142b09ae91ee2ad981c24c9a48689e623d6a952.tar.zst
mandoc-a142b09ae91ee2ad981c24c9a48689e623d6a952.zip
Sanitize the environment when calling make(1) to autodetect ${CC}.
Sevan Janiyan found during testing on AIX that ${CC} could leak in.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 6f2c4116..04768be4 100755
--- a/configure
+++ b/configure
@@ -34,7 +34,7 @@ echo "config.log: writing..."
MANPATH_DEFAULT="/usr/share/man:/usr/X11R6/man:/usr/local/man"
OSNAME=
-CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | make -f -`
+CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env -i make -f -`
CFLAGS="-g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings"
LDADD=
LDFLAGS=