static_linking_1.f: Fix static_libgfortran processing.
authorAndreas Tobler <a.tobler@schweiz.ch>
Fri, 11 Nov 2005 21:41:55 +0000 (22:41 +0100)
committerAndreas Tobler <andreast@gcc.gnu.org>
Fri, 11 Nov 2005 21:41:55 +0000 (22:41 +0100)
2005-11-11  Andreas Tobler  <a.tobler@schweiz.ch>

* gfortran.dg/static_linking_1.f: Fix static_libgfortran processing.

* lib/target-supports.exp (check_effective_target_static_libgfortran):
Add -static to additional_flags and pass it to target_compile.

From-SVN: r106800

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/static_linking_1.f
gcc/testsuite/lib/target-supports.exp

index a807562a663452a6a32061936bd42266545790ea..03be1ca6625dcb6e63d46f52819281e7364939ee 100644 (file)
@@ -1,3 +1,10 @@
+2005-11-11  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * gfortran.dg/static_linking_1.f: Fix static_libgfortran processing.
+
+       * lib/target-supports.exp (check_effective_target_static_libgfortran):
+       Add -static to additional_flags and pass it to target_compile.
+
 2005-11-11  Jerry DeLisle <jvdelisle@gcc.gnu.org>
 
        PR libgfortran/24719
index 5107a07da77570ddb8002e44cbe0545e393c4017..099f4d48506385bf5d46bc9831702758c905fcdb 100644 (file)
@@ -1,5 +1,5 @@
-! { dg-require-effective-target static_libgfortran }
 ! { dg-do run }
+! { dg-require-effective-target static_libgfortran }
 ! { dg-additional-sources static_linking_1.c }
 ! { dg-options "-static" }
 !
index 38eb91ad197d5a59c638fa027b188e2446c02886..5b770dc5ca45d3c2877695012eb560cd06f954d8 100644 (file)
@@ -634,8 +634,9 @@ proc check_effective_target_static_libgfortran { } {
        # Set up, compile, and execute a test program using static linking.
        # Include the current process ID in the file names to prevent
        # conflicts with invocations for multiple testsuites.
+       set opts "additional_flags=-static"
        set src static[pid].f
-        set exe static[pid].x
+       set exe static[pid].x
 
        set f [open $src "w"]
        puts $f "      print *, 'test'"
@@ -643,7 +644,7 @@ proc check_effective_target_static_libgfortran { } {
        close $f
 
        verbose "check_effective_target_static_libgfortran compiling testfile $src" 2
-       set lines [${tool}_target_compile $src $exe executable "-static"]
+       set lines [${tool}_target_compile $src $exe executable "$opts"]
        file delete $src
 
        if [string match "" $lines] then {