From af0370a75d0b7647ac06a4bdba90e876281a96f4 Mon Sep 17 00:00:00 2001 From: Christian Jullien Date: Thu, 9 Jul 2020 14:25:19 +0200 Subject: [PATCH] macos: add tcc version to libtcc.dylib. It can be shown with 'otool -L'. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 95b7c0f5..adce7e37 100644 --- a/Makefile +++ b/Makefile @@ -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) -- 2.11.4.GIT