mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Add necessary linker options when building dylib.
Sets linker options -compatibility_version and -install_name when making dylib.
This commit is contained in:
parent
9c414995c5
commit
df749e032e
|
@ -231,7 +231,10 @@ $(PROG): $(RELEASE_OBJS)
|
|||
|
||||
$(LIB): LDFLAGS += -shared -Wl,-soname,$(SO).$(VER_MAJOR)
|
||||
$(DLL): LDFLAGS += -shared -Wl,--out-implib,$(IMPLIB) -o $@
|
||||
$(DYLIB): LDFLAGS += -dynamiclib -current_version $(VER_MAJOR).$(VER_MINOR).$(VER_RELEASE)
|
||||
$(DYLIB): LDFLAGS += -dynamiclib \
|
||||
-current_version $(VER_MAJOR).$(VER_MINOR).$(VER_RELEASE) \
|
||||
-compatibility_version $(VER_MAJOR) \
|
||||
-install_name $(LIBDIR)/$@
|
||||
$(LIB) $(DLL) $(DYLIB): $(OBJS)
|
||||
$(LD) $^ $(LDFLAGS) -o $@
|
||||
|
||||
|
|
Loading…
Reference in a new issue