Merge pull request #365 from bhundven/no_aout_static_check

configure: Don't write a.out on static compiler check
This commit is contained in:
Bryan Hundven 2016-03-03 09:53:39 -08:00
commit c59c785c7f

View File

@ -136,7 +136,7 @@ AC_PROG_CPP
#---------------------------------------------------------------------
# Check to see if gcc can static link
AC_MSG_CHECKING([if gcc can static link])
echo "int main() {}" | gcc -static -xc - > /dev/null 2>&1
echo "int main() {}" | gcc -static -o /dev/null -xc - > /dev/null 2>&1
static_test=$?
AS_IF([test $static_test -eq 0],
[static_link=y