* baseboards/unix.exp: Don't link with -lm on cygwin.
authorRob Savoye <rob@welcomehome.org>
Wed, 4 Apr 2001 01:23:15 +0000 (01:23 +0000)
committerRob Savoye <rob@welcomehome.org>
Wed, 4 Apr 2001 01:23:15 +0000 (01:23 +0000)
* lib/target.exp: Remove compiler warnings about -fpic or -fPIC on
cygwin.

ChangeLog
baseboards/unix.exp
lib/target.exp

index 33d79e4..2df5243 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-03  David Billinghurst <David.Billinghurst@riotinto.com>
+
+       * baseboards/unix.exp: Don't link with -lm on cygwin.
+       * lib/target.exp: Remove compiler warnings about -fpic or -fPIC on
+       cygwin.
+
 2001-02-21  Rob Savoye  <rob@slipknot.welcomehome.org>
 
        * debian/changelog: Add entry for new release.
index 98d1ec1..80fe9de 100644 (file)
@@ -6,3 +6,8 @@ process_multilib_options "";
 set_board_info compiler  "[find_gcc]";
 
 set_board_info bmk,use_alarm 1;
+
+# Do not use -lm on Cygwin
+if { [istarget "*-*-cygwin*"] } { 
+  set_board_info mathlib "";
+}
index 5cb6288..c82962f 100644 (file)
@@ -271,6 +271,10 @@ proc prune_warnings { text } {
     # Libgloss libnosys defines functions that warn when linked in
     regsub -all "(^|\n)\[^\n\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*is not implemented and will always fail\[^\n\]*" $text "" text
 
+    # Cygwin cc1 warns about -fpic and -fPIC
+    regsub -all ".*: warning: -f(pic|PIC) ignored for target .*" $text ""
+text
+
     # It might be tempting to get carried away and delete blank lines, etc.
     # Just delete *exactly* what we're ask to, and that's it.
     return $text