Bug 1018375 - part 1 - add LD_VERSION_SCRIPT build variable; r=glandium

This commit is contained in:
Nathan Froyd 2014-05-30 14:12:20 -04:00
parent ed5104fd64
commit 319b400465
4 changed files with 12 additions and 0 deletions

View File

@ -54,6 +54,7 @@ _MOZBUILD_EXTERNAL_VARIABLES := \
JAR_MANIFEST \
JAVA_JAR_TARGETS \
JS_MODULES_PATH \
LD_VERSION_SCRIPT \
LIBRARY_NAME \
MODULE \
MSVC_ENABLE_PGO \

View File

@ -510,6 +510,10 @@ ifeq ($(OS_ARCH),Linux)
ifdef IS_COMPONENT
EXTRA_DSO_LDOPTS += -Wl,-Bsymbolic
endif
ifdef LD_VERSION_SCRIPT
EXTRA_DSO_LDOPTS += -Wl,--version-script,$(LD_VERSION_SCRIPT)
EXTRA_DEPS += $(LD_VERSION_SCRIPT)
endif
endif
#

View File

@ -249,6 +249,7 @@ class TreeMetadataEmitter(LoggingMixin):
'DEFFILE',
'SDK_LIBRARY',
'WIN32_EXE_LDFLAGS',
'LD_VERSION_SCRIPT',
]
for v in varlist:
if v in sandbox and sandbox[v]:

View File

@ -359,6 +359,12 @@ VARIABLES = {
This variable can only be used on Windows.
""", None),
'LD_VERSION_SCRIPT': (unicode, unicode,
"""The linker version script for shared libraries.
This variable can only be used on Linux.
""", None),
'RESOURCE_FILES': (HierarchicalStringListWithFlagsFactory({'preprocess': bool}), list,
"""List of resources to be exported, and in which subdirectories.