]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, cobol: If libgcobol has a .spec file use it.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 15 Mar 2025 22:49:16 +0000 (22:49 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 5 Apr 2025 13:25:00 +0000 (14:25 +0100)
This conditionally adds a path for libgcobol when that contains
libgcobol.spec.

gcc/testsuite/ChangeLog:

* lib/cobol.exp: Conditionally add a path for libgcobol.spec.

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

index cd88bcb66d1c3c03215fe74c0f120ba2d8d7b88f..a0eeb4e64e9a2ff90fc738a0b2df9eab549dc665 100644 (file)
@@ -107,8 +107,11 @@ proc cobol_link_flags { paths } {
     }
 
     if { $gccpath != "" } {
+      if [file exists "${gccpath}/libgcobol/libgcobol.spec"] {
+          append flags "-B${gccpath}/libgcobol "
+      }
       if [file exists "${gccpath}/libgcobol/libgcobol.a"] {
-          append flags "-L${gccpath}/libgcobol"
+          append flags "-L${gccpath}/libgcobol "
       }
       if { [file exists "${gccpath}/libgcobol/.libs/libgcobol.a"] ||
         [file exists "${gccpath}/libgobol/.libs/libgcobol.${shlib_ext}"] } {