diff --git a/browser/app/Makefile.in b/browser/app/Makefile.in index c6886132be9..78fdb1325d6 100644 --- a/browser/app/Makefile.in +++ b/browser/app/Makefile.in @@ -154,8 +154,11 @@ include $(topsrcdir)/config/config.mk ifndef BUILD_STATIC_LIBS ifdef NS_TRACE_MALLOC +# when libxul is enabled, trace-malloc is part of it +ifndef MOZ_ENABLE_LIBXUL EXTRA_DSO_LIBS += tracemalloc endif +endif else include $(topsrcdir)/config/static-config.mk