OSDN Git Service

2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Jan 2009 00:59:24 +0000 (00:59 +0000)
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Jan 2009 00:59:24 +0000 (00:59 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143507 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/darwin.h
gcc/testsuite/ChangeLog
gcc/testsuite/lib/gfortran.exp
libgomp/ChangeLog
libgomp/testsuite/lib/libgomp.exp

index c36c612..b1b7fe7 100644 (file)
@@ -1,3 +1,7 @@
+2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
+
+        * config/darwin.h: Add static-libgfortran to LINK_SPEC.
+
 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR c/38869
index 03955c6..53dab64 100644 (file)
@@ -258,6 +258,7 @@ extern GTY(()) int darwin_ms_struct;
 #define LINK_SPEC  \
   "%{static}%{!static:-dynamic} \
    %{fgnu-runtime:%:replace-outfile(-lobjc -lobjc-gnu)}\
+   %{static|static-libgfortran:%:replace-outfile(-lgfortran libgfortran.a%s)}\
    %{!Zdynamiclib: \
      %{Zforce_cpusubtype_ALL:-arch %(darwin_arch) -force_cpusubtype_ALL} \
      %{!Zforce_cpusubtype_ALL:-arch %(darwin_subarch)} \
index e9bfcd2..24d647e 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
+
+        * lib/gfortran.exp: Add -B options for targets that use
+       libgfortran.a%s in their specs.
+
 2009-01-19  Jason Merrill  <jason@redhat.com>
 
        PR c++/23287
index b0e66d8..6d5617f 100644 (file)
@@ -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"
       }
index 9428394..d23a233 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
+
+        * testsuite/lib/libgomp.exp: Add -B option for targets that
+       use libgfortran.a%s in their specs.
+
 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
 
        PR libgomp/38086
index 4e2600e..972d4a1 100644 (file)
@@ -171,6 +171,9 @@ proc libgomp_target_compile { source dest type options } {
 
     if { [info exists lang_test_file] } {
         if { $blddir != "" } {
+            # Some targets use libgfortran.a%s in their specs, so they need
+            # a -B option for uninstalled testing.
+            lappend options "additional_flags=-B${blddir}/${lang_library_path}"
             lappend options "ldflags=-L${blddir}/${lang_library_path}"
         }
         lappend options "ldflags=${lang_link_flags}"