aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Savoye <rob@welcomehome.org>2001-04-04 01:23:15 +0000
committerRob Savoye <rob@welcomehome.org>2001-04-04 01:23:15 +0000
commit6280bb2cdb1ecc93f13098a026c323bea07de6f5 (patch)
treec5cf42ca9940715098de03a21979a74fb8a65ca5
parentede24ea38c0307cefb5c0d8d1d92ab40164ce714 (diff)
downloaddejagnu-6280bb2cdb1ecc93f13098a026c323bea07de6f5.zip
dejagnu-6280bb2cdb1ecc93f13098a026c323bea07de6f5.tar.gz
dejagnu-6280bb2cdb1ecc93f13098a026c323bea07de6f5.tar.bz2
* baseboards/unix.exp: Don't link with -lm on cygwin.
* lib/target.exp: Remove compiler warnings about -fpic or -fPIC on cygwin.
-rw-r--r--ChangeLog6
-rw-r--r--baseboards/unix.exp5
-rw-r--r--lib/target.exp4
3 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 33d79e4..2df5243 100644
--- 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.
diff --git a/baseboards/unix.exp b/baseboards/unix.exp
index 98d1ec1..80fe9de 100644
--- a/baseboards/unix.exp
+++ b/baseboards/unix.exp
@@ -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 "";
+}
diff --git a/lib/target.exp b/lib/target.exp
index 5cb6288..c82962f 100644
--- a/lib/target.exp
+++ b/lib/target.exp
@@ -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