[libcxx-commits] [libcxx] f8cfaa7 - [libc++][AIX] Add system library path via blibpath for lldb (#223837)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Sep 27 11:29:11 PDT 2026
Author: Jake Egan
Date: 2026-09-27T14:29:05-04:00
New Revision: f8cfaa7dc0caf6bd51b82798718c51ac3fd68c12
URL: https://github.com/llvm/llvm-project/commit/f8cfaa7dc0caf6bd51b82798718c51ac3fd68c12
DIFF: https://github.com/llvm/llvm-project/commit/f8cfaa7dc0caf6bd51b82798718c51ac3fd68c12.diff
LOG: [libc++][AIX] Add system library path via blibpath for lldb (#223837)
On AIX some tools we use for testing libc++, like lldb, are linked
against the system libc++, which has additional members (e.g
`shr2_64.o`) that the newly built libc++.a doesn't have. But the current
test harness set the `LIBPATH` to point at the newly built libc++, which
can load break these tools.
This change removes the `LIBPATH` and instead sets the `blibpath`
(equivalent to rpath on other systems), which helps lldb find the system
libc++.a, while still running the tests against the libc++ build under
test.
Added:
Modified:
libcxx/test/configs/ibm-libc++-shared.cfg.in
Removed:
################################################################################
diff --git a/libcxx/test/configs/ibm-libc++-shared.cfg.in b/libcxx/test/configs/ibm-libc++-shared.cfg.in
index 3fcf64e3537e0..faf04b2b2de33 100644
--- a/libcxx/test/configs/ibm-libc++-shared.cfg.in
+++ b/libcxx/test/configs/ibm-libc++-shared.cfg.in
@@ -13,10 +13,10 @@ config.substitutions.append(('%{compile_flags}',
'-nostdinc++ -D__LIBC_NO_CPP_MATH_OVERLOADS__ -I %{include-dir} -I %{libcxx-dir}/test/support'
))
config.substitutions.append(('%{link_flags}',
- '-nostdlib++ -L %{lib-dir} -lc++ -lc++abi -latomic -Wl,-bbigtoc'
+ '-nostdlib++ -L %{lib-dir} -lc++ -lc++abi -latomic -Wl,-bbigtoc -Wl,-blibpath:%{lib-dir}:/usr/lib:/lib'
))
config.substitutions.append(('%{exec}',
- '%{executor} --execdir %{temp} --env LIBPATH=%{lib-dir} -- '
+ '%{executor} --execdir %{temp} -- '
))
# LIBCXX-AIX-FIXME is the feature name used to XFAIL the
More information about the libcxx-commits
mailing list