diff --git a/toolkit/crashreporter/injector/Makefile.in b/toolkit/crashreporter/injector/Makefile.in index 88a6abefa822..7e58cfdf01bb 100644 --- a/toolkit/crashreporter/injector/Makefile.in +++ b/toolkit/crashreporter/injector/Makefile.in @@ -6,9 +6,3 @@ STL_FLAGS = MOZ_GLUE_LDFLAGS = include $(topsrcdir)/config/rules.mk - -ifndef GNU_CC -LDFLAGS += -ENTRY:DummyEntryPoint -else -LDFLAGS += -Wl,-e,_DummyEntryPoint@12 -endif diff --git a/toolkit/crashreporter/injector/moz.build b/toolkit/crashreporter/injector/moz.build index 4c2ff1adefdb..697b6fe8f42c 100644 --- a/toolkit/crashreporter/injector/moz.build +++ b/toolkit/crashreporter/injector/moz.build @@ -18,5 +18,9 @@ LOCAL_INCLUDES += [ '/toolkit/crashreporter/google-breakpad/src', ] - USE_STATIC_LIBS = True + +if CONFIG['GNU_CC']: + LDFLAGS += ['-Wl,-e,_DummyEntryPoint@12'] +else: + LDFLAGS += ['-ENTRY:DummyEntryPoint']