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
46 LINK_LIBTCC += -Wl,-rpath,"$(libdir)"46 LINK_LIBTCC += -Wl,-rpath,"$(libdir)"
47 else47 else
48 LINK_LIBTCC += -Wl,-rpath,"@executable_path/$(TOP)"48 LINK_LIBTCC += -Wl,-rpath,"@executable_path/$(TOP)"
49 DYLIBVER += -current_version $(VERSION)
50 DYLIBVER += -compatibility_version $(VERSION)
49 endif51 endif
50 endif52 endif
51 endif53 endif
@@ -243,7 +245,7 @@ libtcc.so: LDFLAGS+=-fPIC · 191 unmodified lines
243 245
244# OSX dynamic libtcc library246# OSX dynamic libtcc library
245libtcc.dylib: $(LIBTCC_OBJ)247libtcc.dylib: $(LIBTCC_OBJ)
246 $S$(CC) -shared -install_name @rpath/$@ -o $@ $^ $(LDFLAGS)248 $S$(CC) -dynamiclib $(DYLIBVER) -install_name @rpath/$@ -o $@ $^ $(LDFLAGS)
247 249
248# windows dynamic libtcc library250# windows dynamic libtcc library
249libtcc.dll : $(LIBTCC_OBJ)251libtcc.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