Unified · Split
| @@ -46,6 +46,8 @@ else · 45 unmodified lines | ||
| 46 | 46 | LINK_LIBTCC += -Wl,-rpath,"$(libdir)" |
| 47 | 47 | else |
| 48 | 48 | LINK_LIBTCC += -Wl,-rpath,"@executable_path/$(TOP)" |
| 49 | + DYLIBVER += -current_version $(VERSION) | |
| 50 | + DYLIBVER += -compatibility_version $(VERSION) | |
| 49 | 51 | endif |
| 50 | 52 | endif |
| 51 | 53 | endif |
| @@ -243,7 +245,7 @@ libtcc.so: LDFLAGS+=-fPIC · 191 unmodified lines | ||
| 243 | 245 | |
| 244 | 246 | # OSX dynamic libtcc library |
| 245 | 247 | libtcc.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 | 250 | # windows dynamic libtcc library |
| 249 | 251 | libtcc.dll : $(LIBTCC_OBJ) |