diff --git a/memory/replace/dummy/moz.build b/memory/replace/dummy/moz.build index 219598d88b1b..7bc32fb1f3e4 100644 --- a/memory/replace/dummy/moz.build +++ b/memory/replace/dummy/moz.build @@ -9,6 +9,6 @@ SOURCES += [ 'dummy_replace_malloc.c', ] -SharedLibrary('replace_malloc') +SharedLibrary('dummy_replace_malloc') DISABLE_STL_WRAPPING = True diff --git a/mozglue/build/replace_malloc.mk b/mozglue/build/replace_malloc.mk index 467f2a5c80a6..7f436f2eea3b 100644 --- a/mozglue/build/replace_malloc.mk +++ b/mozglue/build/replace_malloc.mk @@ -25,6 +25,8 @@ ifneq ($(MOZ_REPLACE_MALLOC_LINKAGE),compiler support) OS_LDFLAGS += -flat_namespace endif ifeq ($(MOZ_REPLACE_MALLOC_LINKAGE),dummy library) -OS_LDFLAGS += -Wl,-weak_library,$(DEPTH)/memory/replace/dummy/$(DLL_PREFIX)replace_malloc$(DLL_SUFFIX) +OS_LDFLAGS += -Wl,-weak_library,$(DEPTH)/memory/replace/dummy/$(DLL_PREFIX)dummy_replace_malloc$(DLL_SUFFIX) endif + +EXTRA_DEPS += $(topsrcdir)/mozglue/build/replace_malloc.mk endif