Skip to content

Commit

Permalink
Makefile/macos: rename internal dylib name on EFI
Browse files Browse the repository at this point in the history
Use install_name_tool to rename the internal name (id) of the dylib to
ensure it's located properly when linking to it.

Signed-off-by: Sergio Lopez <[email protected]>
  • Loading branch information
slp committed Feb 20, 2024
1 parent 498e405 commit 12f8d1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ ifeq ($(OS),Linux)
patchelf --set-soname $(KRUN_SONAME_$(OS)) --output $(LIBRARY_RELEASE_$(OS)) target/release/$(KRUN_BASE_$(OS))
else
ifeq ($(EFI),1)
ifeq ($(OS),Darwin)
install_name_tool -id libkrun-efi.dylib target/release/libkrun.dylib
endif
mv target/release/libkrun.dylib target/release/$(KRUN_BASE_$(OS))
endif
cp target/release/$(KRUN_BASE_$(OS)) $(LIBRARY_RELEASE_$(OS))
Expand Down

0 comments on commit 12f8d1a

Please sign in to comment.