testsuite, libphobos: Update link flags [PR112864].
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gcc_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gcc_check--master-arm |
success
|
Testing passed
|
Commit Message
Tested on i686, x86_64, aarch64 Darwin, x86_64, aarch64 Linux,
OK for trunk?
thanks,
Iain
--- 8< ---
The regressions here are primarily from duplicated '-B' additions.
We remove the duplicate on the link line.
We also make sure that platforms with extensions other than .so for
shared libs will have the correct paths.
PR target/112864
libphobos/ChangeLog:
* testsuite/lib/libphobos.exp: Use ${shlib_ext} instead of
hard-wiring '.so'.
* testsuite/testsuite_flags.in: Remove duplicate -B option
for spec file path.
---
libphobos/testsuite/lib/libphobos.exp | 2 +-
libphobos/testsuite/testsuite_flags.in | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
Comments
Excerpts from Iain Sandoe's message of Januar 28, 2024 4:03 pm:
> Tested on i686, x86_64, aarch64 Darwin, x86_64, aarch64 Linux,
> OK for trunk?
> thanks,
> Iain
>
Thanks Iain!
OK. Seems reasonable to me.
Iain.
@@ -234,7 +234,7 @@ proc libphobos_init { args } {
if { "$mldir" == "." } {
continue
}
- if { [llength [glob -nocomplain ${gccdir}/${mldir}/libgcc_s*.so.*]] >= 1 } {
+ if { [llength [glob -nocomplain ${gccdir}/${mldir}/libgcc_s*.${shlib_ext}*]] >= 1 } {
append ld_library_path ":${gccdir}/${mldir}"
}
}
@@ -46,10 +46,8 @@ case ${query} in
echo ${GDCPATHS_default} ${GDCPATHS_config}
;;
--gdcldflags)
- GDCLDFLAGS="-B${BUILD_DIR}/src
- -B${BUILD_DIR}/libdruntime/gcc
- -B${BUILD_DIR}/src/.libs
- -L${BUILD_DIR}/src/.libs"
+ GDCLDFLAGS="-B${BUILD_DIR}/libdruntime/gcc
+ -B${BUILD_DIR}/src/.libs"
echo ${GDCLDFLAGS}
;;
*)