macos: support arbitrary configure --libdir
Previously, after installation, only ../lib relative to the binary was supported for finding libtcc.dylib, now any custom libdir.
This commit is contained in:
parent
6c94df6e2d
commit
c69290fb0c
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -45,7 +45,10 @@ else
|
|||
ifndef CONFIG_OSX
|
||||
LINK_LIBTCC += -Wl,-rpath,"$(libdir)"
|
||||
else
|
||||
LINK_LIBTCC += -Wl,-rpath,"@executable_path/$(TOP)" -Wl,-rpath,"@executable_path/$(TOP)/../lib"
|
||||
# macOS doesn't support env-vars libdir out of the box - which we need for
|
||||
# `make test' when libtcc.dylib is used (configure --disable-static), so
|
||||
# we bake a relative path into the binary. $libdir is used after install.
|
||||
LINK_LIBTCC += -Wl,-rpath,"@executable_path/$(TOP)" -Wl,-rpath,"$(libdir)"
|
||||
DYLIBVER += -current_version $(VERSION)
|
||||
DYLIBVER += -compatibility_version $(VERSION)
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue