From a142b09ae91ee2ad981c24c9a48689e623d6a952 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 15 Jul 2016 15:08:37 +0000 Subject: [PATCH] Sanitize the environment when calling make(1) to autodetect ${CC}. Sevan Janiyan found during testing on AIX that ${CC} could leak in. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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= -- 2.47.1