macos: add tcc version to libtcc.dylib. It can be shown with 'otool -L'.

This commit is contained in:
Christian Jullien 2020-07-09 14:25:19 +02:00
parent b5a89c8c93
commit af0370a75d
1 changed files with 3 additions and 1 deletions

View File

@ -46,6 +46,8 @@ else
LINK_LIBTCC += -Wl,-rpath,"$(libdir)"
else
LINK_LIBTCC += -Wl,-rpath,"@executable_path/$(TOP)"
DYLIBVER += -current_version $(VERSION)
DYLIBVER += -compatibility_version $(VERSION)
endif
endif
endif
@ -243,7 +245,7 @@ libtcc.so: LDFLAGS+=-fPIC
# OSX dynamic libtcc library
libtcc.dylib: $(LIBTCC_OBJ)
$S$(CC) -shared -install_name @rpath/$@ -o $@ $^ $(LDFLAGS)
$S$(CC) -dynamiclib $(DYLIBVER) -install_name @rpath/$@ -o $@ $^ $(LDFLAGS)
# windows dynamic libtcc library
libtcc.dll : $(LIBTCC_OBJ)