Use gb_VISIBILITY_FLAGS

Change-Id: I6be70c0b8d73f4d1d1428c0df94ea6d8bdc782f7
diff --git a/fontconfig/ExternalProject_fontconfig.mk b/fontconfig/ExternalProject_fontconfig.mk
index c0b1878..d882ecf 100644
--- a/fontconfig/ExternalProject_fontconfig.mk
+++ b/fontconfig/ExternalProject_fontconfig.mk
@@ -21,7 +21,8 @@ $(eval $(call gb_ExternalProject_register_targets,fontconfig,\

$(call gb_ExternalProject_get_state_target,fontconfig,build) :
	cd $(EXTERNAL_WORKDIR) \
	&& $(if $(debug),CFLAGS=-g) $(if $(filter ANDROID,$(OS)),LIBS="-lm") ./configure \
	&& CFLAGS="$(if $(debug),-g) $(gb_VISIBILITY_FLAGS)" $(if $(filter ANDROID,$(OS)),LIBS="-lm") \
		./configure \
		--disable-shared \
		--with-arch=arm \
		--with-expat-includes=$(OUTDIR)/inc/external/expat \
diff --git a/freetype/ExternalProject_freetype.mk b/freetype/ExternalProject_freetype.mk
index 914007b..aa9c56c 100644
--- a/freetype/ExternalProject_freetype.mk
+++ b/freetype/ExternalProject_freetype.mk
@@ -17,7 +17,8 @@ $(eval $(call gb_ExternalProject_register_targets,freetype,\

$(call gb_ExternalProject_get_state_target,freetype,build) :
	cd $(EXTERNAL_WORKDIR) \
	&& ./configure \
	&& CFLAGS="$(if $(debug),-g) $(gb_VISIBILITY_FLAGS)" \
		./configure \
		--disable-shared \
		--without-zlib \
		--without-bzip2 \