aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib/gfortran.exp
diff options
context:
space:
mode:
authorIain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>2009-01-20 00:59:24 +0000
committerJanis Johnson <janis@gcc.gnu.org>2009-01-20 00:59:24 +0000
commit72c665969348d8e57ca8b4f39f7fffbc5f0a0d46 (patch)
tree0fe05fe529d09ee5c6892cc3701dbd37a3326bca /gcc/testsuite/lib/gfortran.exp
parent6600206c4efd31e1a6034cab809c51d72a694163 (diff)
downloadgcc-72c665969348d8e57ca8b4f39f7fffbc5f0a0d46.zip
gcc-72c665969348d8e57ca8b4f39f7fffbc5f0a0d46.tar.gz
gcc-72c665969348d8e57ca8b4f39f7fffbc5f0a0d46.tar.bz2
darwin.h: Add static-libgfortran to LINK_SPEC.
2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk> gcc/ * config/darwin.h: Add static-libgfortran to LINK_SPEC. gcc/testsuite/ * lib/gfortran.exp: Add -B options for targets that use libgfortran.a%s in their specs. libgomp/ * testsuite/lib/libgomp.exp: Add -B option for targets that use libgfortran.a%s in their specs. From-SVN: r143507
Diffstat (limited to 'gcc/testsuite/lib/gfortran.exp')
-rw-r--r--gcc/testsuite/lib/gfortran.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/gfortran.exp b/gcc/testsuite/lib/gfortran.exp
index b0e66d8..6d5617f 100644
--- a/gcc/testsuite/lib/gfortran.exp
+++ b/gcc/testsuite/lib/gfortran.exp
@@ -88,6 +88,9 @@ proc gfortran_link_flags { paths } {
if { $gccpath != "" } {
if [file exists "${gccpath}/libgfortran/.libs/libgfortran.a"] {
+ # Some targets use libgfortran.a%s in their specs, so they need a -B option
+ # for uninstalled testing.
+ append flags "-B${gccpath}/libgfortran/.libs "
append flags "-L${gccpath}/libgfortran/.libs "
append ld_library_path ":${gccpath}/libgfortran/.libs"
}