Commit 680689d3 authored by Matthias Vallentin's avatar Matthias Vallentin

Record CC and CXX in config.status.

This patch also adds the CC and CXX environment variables to the config.status
command in the build directory. When invoking ./build/config.status without
this extra environment variable, one might not end up with the same build
environment as in the first build.
parent 6c498131
...@@ -130,6 +130,14 @@ configure () ...@@ -130,6 +130,14 @@ configure ()
fi fi
echo "# This is the command used to configure this build" > config.status echo "# This is the command used to configure this build" > config.status
if [ -n "$CC" ]; then
printf "CC=%s" $CC >> config.status
printf ' ' >> config.status
fi
if [ -n "$CXX" ]; then
printf "CXX=%s" $CXX >> config.status
printf ' ' >> config.status
fi
echo $command >> config.status echo $command >> config.status
chmod u+x config.status chmod u+x config.status
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment