libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: Skip darwin test if fat link fails


From: Peter O'Gorman
Subject: FYI: Skip darwin test if fat link fails
Date: Sat, 31 May 2008 12:16:01 -0500
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

I just pushed this.

Peter
-- 
Peter O'Gorman
http://pogma.com
>From be6f90aa33bfaa28dcaba8cc269ef504a51f6f9a Mon Sep 17 00:00:00 2001
From: Peter O'Gorman <address@hidden>
Date: Sat, 31 May 2008 12:12:31 -0500
Subject: [PATCH] Skip darwin test if fat link fails.

* tests/darwin.at: Skip if we can not link a fat program.
Reported by Daniel Macks <address@hidden>
---
 ChangeLog       |    6 ++++++
 tests/darwin.at |   12 ++++++++----
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 178d505..90c8ebd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-31  Peter O'Gorman  <address@hidden>
+
+       Skip darwin test if fat link fails.
+       * tests/darwin.at: Skip if we can not link a fat program.
+       Reported by Daniel Macks <address@hidden>
+
 2008-05-26  Ralf Wildenhues  <address@hidden>
 
        libtoolize should not remove config.guess, config.sub.
diff --git a/tests/darwin.at b/tests/darwin.at
index 7e6d07e..2ca5649 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;
 ]])
-- 
1.5.4.1


reply via email to

[Prev in Thread] Current Thread [Next in Thread]