2011-09-03 10:19:06 +04:00
|
|
|
#
|
2012-05-21 15:12:37 +04:00
|
|
|
# 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/.
|
2011-09-03 10:19:06 +04:00
|
|
|
|
2013-11-19 06:47:45 +04:00
|
|
|
# For FORCE_SHARED_LIB
|
|
|
|
include $(topsrcdir)/config/config.mk
|
2012-05-03 10:36:12 +04:00
|
|
|
|
2011-09-03 10:19:06 +04:00
|
|
|
ifeq (WINNT,$(OS_TARGET))
|
2014-08-01 04:30:30 +04:00
|
|
|
mozglue.def: mozglue.def.in $(GLOBAL_DEPS)
|
2013-11-09 05:35:44 +04:00
|
|
|
$(call py_action,preprocessor,$(if $(MOZ_REPLACE_MALLOC),-DMOZ_REPLACE_MALLOC) $(ACDEFINES) $< -o $@)
|
2011-09-03 10:19:06 +04:00
|
|
|
|
2011-12-28 11:24:02 +04:00
|
|
|
GARBAGE += mozglue.def
|
2011-09-03 10:19:06 +04:00
|
|
|
endif
|
|
|
|
|
2014-10-24 08:08:01 +04:00
|
|
|
include $(topsrcdir)/mozglue/build/replace_malloc.mk
|
2012-12-07 12:32:24 +04:00
|
|
|
|
2012-01-11 14:10:59 +04:00
|
|
|
ifdef MOZ_LINKER
|
2012-03-13 12:47:03 +04:00
|
|
|
ifeq (arm, $(TARGET_CPU))
|
Bug 1036894 part 9 - Replace all EXTRA_DSO_LDOPTS, SHARED_LIBRARY_LIBS and LIBS with EXTRA_LIBS, OS_LIBS or OS_LDFLAGS, appropriately. r=gps
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.
2014-07-23 08:31:02 +04:00
|
|
|
OS_LDFLAGS += -Wl,-version-script,$(srcdir)/arm-eabi-filter
|
2012-03-13 12:47:03 +04:00
|
|
|
endif
|
|
|
|
|
2012-01-11 14:10:59 +04:00
|
|
|
endif
|