libstdc++: Only add valid -L paths to testsuite linker options
authorJonathan Wakely <jwakely@redhat.com>
Thu, 20 Jan 2022 11:15:27 +0000 (11:15 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 20 Jan 2022 12:29:29 +0000 (12:29 +0000)
commit5929f253fcdbf24fd47706dd11aafdeac5e9ecb6
tree0bdc2a4e3b63ca82a95c6ba2f763f2197d75d21a
parent9b42782366b705d9ecd24020ab35fe7eee045c4e
libstdc++: Only add valid -L paths to testsuite linker options

The MacOS linker warns about -L arguments that don't exist, which causes
all tests to fail for the defauly configuration (because libbacktrace
isn't built).

libstdc++-v3/ChangeLog:

* scripts/testsuite_flags.in: Only add src/filesystem/.libs and
src/libbacktrace/.libs to LDFLAGS if those directories exist.
libstdc++-v3/scripts/testsuite_flags.in