From 6280bb2cdb1ecc93f13098a026c323bea07de6f5 Mon Sep 17 00:00:00 2001 From: Rob Savoye Date: Wed, 4 Apr 2001 01:23:15 +0000 Subject: [PATCH] * baseboards/unix.exp: Don't link with -lm on cygwin. * lib/target.exp: Remove compiler warnings about -fpic or -fPIC on cygwin. --- ChangeLog | 6 ++++++ baseboards/unix.exp | 5 +++++ lib/target.exp | 4 ++++ 3 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index 33d79e4..2df5243 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-04-03 David Billinghurst + + * 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 * 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 -- 2.7.4