Skip to content

Commit 653cad3

Browse files
authored
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
1 parent 47255f9 commit 653cad3

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
@@ -1198,7 +1198,7 @@ else ifeq ($(OS), Darwin)
11981198
RPATH_ESCAPED_ORIGIN := $(RPATH_ORIGIN)
11991199
RPATH_LIB := -Wl,-rpath,'@loader_path/'
12001200
else
1201-
RPATH := -Wl,-rpath,'$$ORIGIN/$(build_libdir_rel)' -Wl,-rpath-link,$(build_shlibdir) -Wl,-z,origin
1201+
RPATH := -Wl,-rpath,'$$ORIGIN/$(build_libdir_rel)' -Wl,-rpath,'$$ORIGIN/$(build_private_libdir_rel)' -Wl,-rpath-link,$(build_shlibdir) -Wl,-z,origin
12021202
RPATH_ORIGIN := -Wl,-rpath,'$$ORIGIN' -Wl,-z,origin
12031203
RPATH_ESCAPED_ORIGIN := -Wl,-rpath,'\$$\$$ORIGIN' -Wl,-z,origin -Wl,-rpath-link,$(build_shlibdir)
12041204
RPATH_LIB := -Wl,-rpath,'$$ORIGIN/' -Wl,-z,origin

0 commit comments

Comments
 (0)