Skip to content

Commit bf1f998

Browse files
ararslanKristofferC
authored andcommitted
Partially revert #42919 (#42969)
* Partially revert #42919 The change to RPATH setting for macOS seems to have improved the situation for users on Monterey, but the other changes in #42919 that affect other platforms seem to have caused regressions on musl Linux (#42940) and FreeBSD (#42944). The easiest thing to do here is to keep the changes from #42919 as they apply to macOS but revert the others. * Un-revert the `RPATH_LIB` definition (cherry picked from commit 653cad3)
1 parent f8ae06f commit bf1f998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Make.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ else ifeq ($(OS), Darwin)
12351235
RPATH_ESCAPED_ORIGIN := $(RPATH_ORIGIN)
12361236
RPATH_LIB := -Wl,-rpath,'@loader_path/'
12371237
else
1238-
RPATH := -Wl,-rpath,'$$ORIGIN/$(build_libdir_rel)' -Wl,-rpath-link,$(build_shlibdir) -Wl,-z,origin
1238+
RPATH := -Wl,-rpath,'$$ORIGIN/$(build_libdir_rel)' -Wl,-rpath,'$$ORIGIN/$(build_private_libdir_rel)' -Wl,-rpath-link,$(build_shlibdir) -Wl,-z,origin
12391239
RPATH_ORIGIN := -Wl,-rpath,'$$ORIGIN' -Wl,-z,origin
12401240
RPATH_ESCAPED_ORIGIN := -Wl,-rpath,'\$$\$$ORIGIN' -Wl,-z,origin -Wl,-rpath-link,$(build_shlibdir)
12411241
RPATH_LIB := -Wl,-rpath,'$$ORIGIN/' -Wl,-z,origin

0 commit comments

Comments
 (0)