mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
95063176fa
OS_LIBS for libraries that are not part of the gecko tree, EXTRA_LIBS for libraries, such as NSPR, that are in the tree, but are not handled by moz.build just yet. Those EXTRA_LIBS may also come from a system library. However, in cases where the expanded variables are always empty for the in-tree case, OS_LIBS is used (as for, e.g. MOZ_ZLIB_LIBS). OS_LDFLAGS is used exclusively for non-library linker flags. Always pass EXTRA_LIBS before OS_LIBS on linker command lines. Forbid EXTRA_DSO_LDOPTS, SHARED_LIBRARY_LIBS and LIBS in Makefiles.
29 lines
757 B
Makefile
29 lines
757 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/.
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
OS_LIBS += $(call EXPAND_LIBNAME,ole32 shell32 shlwapi)
|
|
endif
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
OS_LIBS += $(call EXPAND_LIBNAME,version)
|
|
endif
|
|
|
|
EXTRA_LIBS += \
|
|
$(NSPR_LIBS) \
|
|
$(NULL)
|
|
|
|
# Mac: Need to link with CoreFoundation for Mac Migrators (PList reading code)
|
|
# GTK2: Need to link with glib for GNOME shell service
|
|
ifneq (,$(filter cocoa gtk2 gtk3,$(MOZ_WIDGET_TOOLKIT)))
|
|
OS_LIBS += \
|
|
$(TK_LIBS) \
|
|
$(NULL)
|
|
endif
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
# Ensure that we don't embed a manifest referencing the CRT.
|
|
EMBED_MANIFEST_AT =
|