diff --git a/xpcom/build/Makefile.in b/xpcom/build/Makefile.in
index 2ff9f82..481d720 100644
--- a/xpcom/build/Makefile.in
+++ b/xpcom/build/Makefile.in
@@ -51,6 +51,7 @@
SHORT_LIBNAME = xpcomcor
LIBXUL_LIBRARY = 1
EXPORT_LIBRARY = 1
+VISIBILITY_FLAGS =
GRE_MODULE = 1
MOZILLA_INTERNAL_API = 1
diff --git a/xpcom/glue/Makefile.in b/xpcom/glue/Makefile.in
index 116f8cd..6c4415c 100644
--- a/xpcom/glue/Makefile.in
+++ b/xpcom/glue/Makefile.in
@@ -44,6 +44,7 @@ include $(DEPTH)/config/autoconf.mk
include $(srcdir)/objs.mk
EXTRA_DEPS += $(srcdir)/objs.mk
+VISIBILITY_FLAGS =
DIRS = standalone nomozalloc