Skip to content

Commit bd27159

Browse files
afbjorklundslp
authored andcommitted
Fix the library install name and path
The install_name is supposed to be an absolute path, and use the soname rather than the developer symlink. Avoids using DYLD_FALLBACK_LIBRARY_PATH=/usr/local/lib Homebrew changes the install_name downstream, in /opt. Signed-off-by: Anders F Björklund <[email protected]>
1 parent 7d3ff6c commit bd27159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ ifeq ($(NITRO),1)
101101
endif
102102
ifeq ($(OS),Darwin)
103103
ifeq ($(EFI),1)
104-
install_name_tool -id libkrun-efi.dylib target/release/libkrun.dylib
104+
install_name_tool -id $(PREFIX)/$(LIBDIR_$(OS))/$(KRUN_SONAME_$(OS)) target/release/libkrun.dylib
105105
endif
106106
mv target/release/libkrun.dylib target/release/$(KRUN_BASE_$(OS))
107107
endif

0 commit comments

Comments
 (0)