]> granicus.if.org Git - libx264/commitdiff
Fixed cc_check on OS X (gcc -o /dev/null always fails)
authorEric Petit <titer@videolan.org>
Tue, 13 Dec 2005 16:32:39 +0000 (16:32 +0000)
committerEric Petit <titer@videolan.org>
Tue, 13 Dec 2005 16:32:39 +0000 (16:32 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@387 df754926-b1dd-0310-bc7b-ec298dee348c

configure

index f2686330fec3a48e848b9877ed30768516db033e..1faa11363dada98f51d3939043935f6ed13d4d0d 100755 (executable)
--- a/configure
+++ b/configure
@@ -27,9 +27,9 @@ cc_check() {
 #include <$1>
 int main () { return 0; }
 EOF
-    $CC $CFLAGS $LDFLAGS $2 conftest.c -o $DEVNULL 2>$DEVNULL
+    $CC $CFLAGS $LDFLAGS $2 conftest.c -o conftest 2>$DEVNULL
     TMP="$?"
-    rm -f conftest.c
+    rm -f conftest.c conftest
     return $TMP
 }