Bug 1000994 - Use SONAME to specify soname for libmozgtk & stubs. r=glandium

The current implementation of the solution outlined in bug 6244229
uses LDFLAGS in Makefile.in to specify the SONAME. This patch uses
the new SONAME option in moz.build to do the same, and removes the
LDFLAGS manipulation from Makefile.in.
This commit is contained in:
Mukilan Thiyagarajan 2014-07-07 22:20:00 +02:00
parent c0ddfb3ebf
commit 6e0decbca1
5 changed files with 6 additions and 8 deletions

View File

@ -4,7 +4,6 @@
include $(topsrcdir)/config/rules.mk
LDFLAGS += -Wl,-soname=$(DLL_PREFIX)mozgtk$(DLL_SUFFIX)
# If LDFLAGS contains -Wl,--as-needed, we need to add -Wl,--no-as-needed
# before the gtk libraries, otherwise the linker will drop those dependencies

View File

@ -12,4 +12,6 @@ DEFINES['GTK3_SYMBOLS'] = True
LIBRARY_NAME = 'mozgtk2'
SONAME = 'mozgtk'
FORCE_SHARED_LIB = True

View File

@ -12,4 +12,6 @@ DEFINES['GTK2_SYMBOLS'] = True
LIBRARY_NAME = 'mozgtk'
SONAME = 'mozgtk'
FORCE_SHARED_LIB = True

View File

@ -1,7 +0,0 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
include $(topsrcdir)/config/rules.mk
LDFLAGS += -Wl,-soname=$(DLL_PREFIX)mozgtk$(DLL_SUFFIX)

View File

@ -13,4 +13,6 @@ for var in ('COMMON_SYMBOLS', 'GTK2_SYMBOLS', 'GTK3_SYMBOLS'):
LIBRARY_NAME = 'mozgtk_stub'
SONAME = 'mozgtk'
FORCE_SHARED_LIB = True