https://gcc.gnu.org/g:f1e82c859fc205395e4f413cdc0b95f54a48ce92

commit r15-9356-gf1e82c859fc205395e4f413cdc0b95f54a48ce92
Author: Iain Sandoe <i...@sandoe.co.uk>
Date:   Sun Mar 16 10:47:25 2025 +0000

    testsuite, cobol: Add libquadmath paths.
    
    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 <i...@sandoe.co.uk>

Diff:
---
 gcc/testsuite/lib/cobol.exp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gcc/testsuite/lib/cobol.exp b/gcc/testsuite/lib/cobol.exp
index 8ea91e3dcfac..723989e14394 100644
--- a/gcc/testsuite/lib/cobol.exp
+++ b/gcc/testsuite/lib/cobol.exp
@@ -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 } {

Reply via email to