Skip to content
Snippets Groups Projects
Commit 748bff0a authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 1658434 - Replace replace_malloc.mk with a mozbuild file. r=nalexander

parent d36cf155
No related branches found
No related tags found
1 merge request!200Draft: fixup! Bug 27476: Implement about:torconnect captive portal within Tor Browser
......@@ -175,7 +175,7 @@ MOZ_LTO_CFLAGS :=
MOZ_LTO_LDFLAGS :=
endif
LDFLAGS = $(MOZ_LTO_LDFLAGS) $(COMPUTED_LDFLAGS) $(PGO_LDFLAGS) $(MK_LDFLAGS)
LDFLAGS = $(MOZ_LTO_LDFLAGS) $(COMPUTED_LDFLAGS) $(PGO_LDFLAGS)
COMPILE_CFLAGS = $(MOZ_LTO_CFLAGS) $(COMPUTED_CFLAGS) $(PGO_CFLAGS) $(_DEPEND_CFLAGS) $(MK_COMPILE_DEFINES)
COMPILE_CXXFLAGS = $(MOZ_LTO_CFLAGS) $(COMPUTED_CXXFLAGS) $(PGO_CFLAGS) $(_DEPEND_CFLAGS) $(MK_COMPILE_DEFINES)
......
......@@ -2,8 +2,6 @@
# 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)/mozglue/build/replace_malloc.mk
ifndef CROSS_COMPILE
ifndef MOZ_CODE_COVERAGE
......
......@@ -60,3 +60,5 @@ if CONFIG['MOZ_NEEDS_LIBATOMIC']:
OS_LIBS += ['atomic']
DisableStlWrapping()
include('/mozglue/build/replace_malloc.mozbuild')
......@@ -13,5 +13,3 @@ ifeq (WINNT,$(OS_TARGET))
# here.
EXTRA_DEPS += $(srcdir)/mozglue.dll.manifest
endif
include $(topsrcdir)/mozglue/build/replace_malloc.mk
......@@ -116,3 +116,5 @@ if CONFIG['MOZ_LINKER'] and CONFIG['CPU_ARCH'] == 'arm':
LDFLAGS += ['-Wl,-version-script,%s/arm-eabi-filter' % SRCDIR]
DIST_INSTALL = True
include('replace_malloc.mozbuild')
......@@ -2,6 +2,5 @@
# 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 (Darwin_1,$(OS_TARGET)_$(MOZ_REPLACE_MALLOC))
MK_LDFLAGS = -Wl,-U,_replace_init
endif
if CONFIG['OS_TARGET'] == 'Darwin' and CONFIG['MOZ_REPLACE_MALLOC']:
LDFLAGS += ['-Wl,-U,_replace_init']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment