Include relevant env vars on command line.

Makes it easier to reproduce a build by cut/pasting the configure line.
This commit is contained in:
Darren Tucker 2021-10-07 15:55:04 +11:00
parent ef5916b8ac
commit 482f73be10
1 changed files with 16 additions and 1 deletions

17
.github/configure.sh vendored
View File

@ -2,5 +2,20 @@
. .github/configs $1
set -x
printf "$ "
if [ "x$CC" != "x" ]; then
printf "CC='$CC' "
fi
if [ "x$CFLAGS" != "x" ]; then
printf "CFLAGS='$CFLAGS' "
fi
if [ "x$CPPFLAGS" != "x" ]; then
printf "CPPFLAGS='$CPPFLAGS' "
fi
if [ "x$LDFLAGS" != "x" ]; then
printf "LDFLAGS='$LDFLAGS' "
fi
echo ./configure ${CONFIGFLAGS}
./configure ${CONFIGFLAGS}