Skip to content

Commit

Permalink
Fix library install name on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
mohd-akram committed May 17, 2024
1 parent d94c794 commit 6224e0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/libpe/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ else ifeq ($(PLATFORM_OS), GNU/kFreeBSD)
$(LINK) -shared -Wl,-soname,$(LIBNAME).so.1 $(LDFLAGS) -o $(LIBNAME).so $^ $(LIBS)
else ifeq ($(PLATFORM_OS), Darwin)
$(LINK) -headerpad_max_install_names -dynamiclib \
-flat_namespace -install_name $(LIBNAME).$(VERSION).dylib \
-flat_namespace -install_name $(libdir)/$(LIBNAME).$(VERSION).dylib \
-current_version $(VERSION) -compatibility_version $(VERSION) \
$(LDFLAGS) -o $(LIBNAME).dylib $^ $(LIBS)
else ifeq ($(PLATFORM_OS), CYGWIN)
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ else ifeq ($(PLATFORM_OS), GNU/kFreeBSD)
else ifeq ($(PLATFORM_OS), Darwin)
$(LINK) -headerpad_max_install_names -dynamiclib \
-undefined dynamic_lookup -fno-common \
-install_name $(LIBNAME).$(VERSION).dylib \
-install_name $(pluginsdir)/$(LIBNAME).$(VERSION).dylib \
-current_version $(VERSION) -compatibility_version $(VERSION) \
$(LDFLAGS) -o ${plugins_BUILDDIR}/$(LIBNAME).dylib $^
else ifeq ($(PLATFORM_OS), CYGWIN)
Expand Down

0 comments on commit 6224e0c

Please sign in to comment.