History

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

Christian Jullien committed 6 years ago

Commit af0370a1 parent b5a89c81 file · +3 −1Browse files

Unified · Split

Makefile+3−1
@@ -46,6 +46,8 @@ else · 45 unmodified lines
4646 LINK_LIBTCC += -Wl,-rpath,"$(libdir)"
4747 else
4848 LINK_LIBTCC += -Wl,-rpath,"@executable_path/$(TOP)"
49+ DYLIBVER += -current_version $(VERSION)
50+ DYLIBVER += -compatibility_version $(VERSION)
4951 endif
5052 endif
5153 endif
@@ -243,7 +245,7 @@ libtcc.so: LDFLAGS+=-fPIC · 191 unmodified lines
243245
244246 # OSX dynamic libtcc library
245247 libtcc.dylib: $(LIBTCC_OBJ)
246− $S$(CC) -shared -install_name @rpath/$@ -o $@ $^ $(LDFLAGS)
248+ $S$(CC) -dynamiclib $(DYLIBVER) -install_name @rpath/$@ -o $@ $^ $(LDFLAGS)
247249
248250 # windows dynamic libtcc library
249251 libtcc.dll : $(LIBTCC_OBJ)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t