summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2016-03-03 17:51:32 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2016-03-03 17:51:32 (GMT)
commit58617df80d92cc36c332a47d982a13321c5f7878 (patch)
tree44603274f3ef605b8b47185e5e54c8a3f41a4be1
parent0f76cad2f078bfa2726639c7a812dcc84f331d4a (diff)
configure: Don't write a.out on static compiler check
Because I don't pass `-o` to gcc, it makes an a.out file with gcc. For clang it doesn't make the a.out, as that is not the default. It doesn't hurt to output to /dev/null for both. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 4fd5776..8651015 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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