summaryrefslogtreecommitdiffstats
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
commit3ddd392988887279ba08bafabe3ecf8801f573ea (patch)
tree927ce2346e60580a065411685b154f3a402e5a77
parent9b2dd07d5bc463d730bc31615db618a8799c34af (diff)
downloadmandoc-3ddd392988887279ba08bafabe3ecf8801f573ea.tar.gz
Sanitize the environment when calling make(1) to autodetect ${CC}.
Sevan Janiyan found during testing on AIX that ${CC} could leak in.
-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=