зеркало из https://github.com/mozilla/gecko-dev.git
Bug 809430 - Add symbol versions. r=glandium
This commit is contained in:
Родитель
749e7fd747
Коммит
0ae0110c30
|
@ -530,6 +530,18 @@ config/nsinstall$(HOST_BIN_SUFFIX): $(srcdir)/config/nsinstall.c $(srcdir)/confi
|
|||
$(MAKE) -C config/ nsinstall$(HOST_BIN_SUFFIX)
|
||||
endif
|
||||
|
||||
# Ensure symbol versions of shared library on Linux do not conflict
|
||||
# with those in libxul.
|
||||
ifeq (Linux,$(OS_TARGET))
|
||||
EXTRA_DSO_LDOPTS += -Wl,-version-script,symverscript
|
||||
|
||||
symverscript: symverscript.in
|
||||
$(PYTHON) $(topsrcdir)/config/Preprocessor.py \
|
||||
-DVERSION="$(subst -,_,$(LIBRARY_NAME))" $< > $@
|
||||
|
||||
EXTRA_DEPS += symverscript
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifdef JS_HAS_CTYPES
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#filter substitution
|
||||
@VERSION@ {
|
||||
global: *;
|
||||
};
|
|
@ -129,6 +129,13 @@ endif
|
|||
ifeq (Linux,$(OS_ARCH))
|
||||
ifneq (Android,$(OS_TARGET))
|
||||
OS_LIBS += -lrt
|
||||
EXTRA_DSO_LDOPTS += -Wl,-version-script,symverscript
|
||||
|
||||
symverscript: symverscript.in
|
||||
$(PYTHON) $(topsrcdir)/config/Preprocessor.py \
|
||||
-DVERSION="$(LIBRARY_NAME)$(MOZILLA_VERSION)" $< > $@
|
||||
|
||||
EXTRA_DEPS += symverscript
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#filter substitution
|
||||
@VERSION@ {
|
||||
global: *;
|
||||
};
|
Загрузка…
Ссылка в новой задаче