From: Peter O'Gorman Date: Sat, 31 May 2008 17:12:31 +0000 (-0500) Subject: Skip darwin test if fat link fails. X-Git-Tag: v2.2.6~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be6f90aa33bfaa28dcaba8cc269ef504a51f6f9a;p=thirdparty%2Flibtool.git Skip darwin test if fat link fails. * tests/darwin.at: Skip if we can not link a fat program. Reported by Daniel Macks --- diff --git a/ChangeLog b/ChangeLog index 178d50544..90c8ebda6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-31 Peter O'Gorman + + Skip darwin test if fat link fails. + * tests/darwin.at: Skip if we can not link a fat program. + Reported by Daniel Macks + 2008-05-26 Ralf Wildenhues libtoolize should not remove config.guess, config.sub. diff --git a/tests/darwin.at b/tests/darwin.at index 7e6d07eec..2ca564942 100644 --- a/tests/darwin.at +++ b/tests/darwin.at @@ -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; ]])