OSDN Git Service

2011-12-15 David Daney <david.daney@cavium.com>
[pf3gnuchains/pf3gnuchains4x.git] / ld / testsuite / ld-elfweak / elfweak.exp
index 0cc1299..1b60b89 100644 (file)
@@ -370,7 +370,9 @@ proc build_exec { test execname objs flags dat dynsymexp symexp} {
     pass $test
 }
 
-if [istarget mips*-*-*] {
+# Old version of GCC for MIPS default to enabling -fpic
+# and get confused if it is used on the command line.
+if { [istarget mips*-*-*] && ! [at_least_gcc_version 4 3] } then {
     set picflag ""
 } else {
     # Unfortunately, the gcc argument is -fpic and the cc argument is