File libcxx-test-library-path.patch of Package llvm20
16
1
--- a/libcxx/test/configs/llvm-libc++-shared.cfg.in
2
+++ b/libcxx/test/configs/llvm-libc++-shared.cfg.in
3
4
'-nostdinc++ -I %{target-include-dir} -I %{include-dir} -I %{libcxx-dir}/test/support'
5
))
6
config.substitutions.append(('%{link_flags}',
7
- '-nostdlib++ -L %{lib-dir} -Wl,-rpath,%{lib-dir} -lc++'
8
+ '-nostdlib++ -L %{lib-dir} -lc++'
9
))
10
config.substitutions.append(('%{exec}',
11
- '%{executor} --execdir %T -- '
12
+ '%{executor} --execdir %T --env LD_LIBRARY_PATH=%{lib} -- '
13
))
14
15
import os, site
16