]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Skip darwin test if fat link fails.
authorPeter O'Gorman <peter@pogma.com>
Sat, 31 May 2008 17:12:31 +0000 (12:12 -0500)
committerPeter O'Gorman <peter@pogma.com>
Sat, 31 May 2008 17:12:31 +0000 (12:12 -0500)
* tests/darwin.at: Skip if we can not link a fat program.
Reported by Daniel Macks <dmacks@netspace.org>

ChangeLog
tests/darwin.at

index 178d50544eb23f01db14b6a629fde0d6132b228e..90c8ebda69b3c7a482a8df0bdf2c1df2f0841a08 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-31  Peter O'Gorman  <peter@pogma.com>
+
+       Skip darwin test if fat link fails.
+       * tests/darwin.at: Skip if we can not link a fat program.
+       Reported by Daniel Macks <dmacks@netspace.org>
+
 2008-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        libtoolize should not remove config.guess, config.sub.
index 7e6d07eec9806763e0fbd3540418bdc070982d14..2ca564942a15f600c3856a4e95d0467fcf11bd21 100644 (file)
@@ -30,17 +30,21 @@ darwin*) ;;
 *) noskip=false ;;
 esac
 
-AT_DATA([foo.c],[[
-int x=0;
+AT_DATA([simple.c] ,[[
+int main() { return 0;}
 ]])
 
 $noskip && {
-$CC $CPPFLAGS $CFLAGS -arch ppc -arch i386 -c -o foo.o foo.c 2>&1 > /dev/null || noskip=false
-rm -f foo.o
+$CC $CPPFLAGS $CFLAGS -arch ppc -arch i386 -o simple simple.c 2>&1 > /dev/null || noskip=false
+rm -f simple 
 }
 
 AT_CHECK([$noskip || (exit 77)])
 
+AT_DATA([foo.c],[[
+int x=0;
+]])
+
 AT_DATA([baz.c],[[
 int y=0;
 ]])