Skip to content

Commit 86c2d80

Browse files
committed
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.
1 parent 649573c commit 86c2d80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Make.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,10 +1198,10 @@ 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)
1204-
RPATH_LIB := -Wl,-rpath,'$$ORIGIN/' -Wl,-z,origin
1204+
RPATH_LIB := -Wl,-rpath,'$$ORIGIN/julia' -Wl,-rpath,'$$ORIGIN' -Wl,-z,origin
12051205
endif
12061206

12071207
# --whole-archive

0 commit comments

Comments
 (0)