]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, cobol: Add libquadmath paths.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 16 Mar 2025 10:47:25 +0000 (10:47 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Thu, 10 Apr 2025 10:04:24 +0000 (11:04 +0100)
Even when we are using IEC 128b floating point, the quadmath library can
be pulled in 'as needed'.

gcc/testsuite/ChangeLog:

* lib/cobol.exp: Add libquadmath paths.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/testsuite/lib/cobol.exp

index 8ea91e3dcfacd1bd993903311cb89a7de2810944..723989e14394da4b43a4a887d6c0328c629fbdf8 100644 (file)
@@ -122,6 +122,15 @@ proc cobol_link_flags { paths } {
        }
        append ld_library_path ":${gccpath}/libgcobol/.libs"
       }
+      if { [file exists "${gccpath}/libquadmath/.libs/libquadmath.a"] ||
+        [file exists "${gccpath}/libquadmath/.libs/libquadmath.${shlib_ext}"] } {
+       if { $target_wants_B_option } {
+          append flags "-B${gccpath}/libquadmath/.libs "
+       } else {
+          append flags "-L${gccpath}/libquadmath/.libs "
+       }
+       append ld_library_path ":${gccpath}/libquadmath/.libs"
+      }
       if { [file exists "${gccpath}/libstdc++-v3/src/.libs/libstdc++.a"] ||
           [file exists "${gccpath}/libstdc++-v3/src/.libs/libstdc++.${shlib_ext}"] } {
        if { $target_wants_B_option } {