зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1379536 - Fix library install_name on macOS. r=glandium
--HG-- extra : rebase_source : 223be96670857fd00c6938e7eab5c8ed890c29ce
This commit is contained in:
Родитель
4220adbc69
Коммит
d6d6614eee
|
@ -81,6 +81,8 @@ install:: js-config
|
|||
cp $^ js$(MOZJS_MAJOR_VERSION)-config
|
||||
$(SYSINSTALL) js$(MOZJS_MAJOR_VERSION)-config $(DESTDIR)$(bindir)
|
||||
|
||||
# Use install_name_tool to set the install_name properly for standalone
|
||||
# installed libraries on macOS
|
||||
install:: $(REAL_LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY)
|
||||
ifneq (,$(REAL_LIBRARY))
|
||||
$(SYSINSTALL) $(REAL_LIBRARY) $(DESTDIR)$(libdir)
|
||||
|
@ -88,6 +90,9 @@ ifneq (,$(REAL_LIBRARY))
|
|||
endif
|
||||
ifneq (,$(SHARED_LIBRARY))
|
||||
$(SYSINSTALL) $(SHARED_LIBRARY) $(DESTDIR)$(libdir)
|
||||
ifeq ($(OS_ARCH),Darwin)
|
||||
install_name_tool -id $(abspath $(libdir)/$(SHARED_LIBRARY)) $(DESTDIR)$(libdir)/$(SHARED_LIBRARY)
|
||||
endif
|
||||
endif
|
||||
ifneq (,$(IMPORT_LIBRARY))
|
||||
$(SYSINSTALL) $(IMPORT_LIBRARY) $(DESTDIR)$(libdir)
|
||||
|
|
Загрузка…
Ссылка в новой задаче