mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
20 lines
785 B
Makefile
20 lines
785 B
Makefile
# 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)
|
|
|
|
# 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
|
|
# because no symbols are used from them. But those dependencies need to be
|
|
# kept for things to work properly.
|
|
ifeq (,$(filter -Wl,--as-needed),$(LDFLAGS))
|
|
no_as_needed = $1
|
|
else
|
|
no_as_needed = -Wl,--no-as-needed $1 -Wl,--as-needed
|
|
endif
|
|
|
|
EXTRA_DSO_LDOPTS += $(filter -L%,$(MOZ_GTK2_LIBS)) $(call no_as_needed,-lgtk-x11-2.0 -lgdk-x11-2.0)
|