autotools: make symbols hidden by default

Now that symbols that should be exported are annotated accordingly, make
all the rest hidden by default.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
main
Lucas De Marchi 2018-09-13 16:24:32 -07:00
parent ba808253bc
commit 1e3fcc495b
25 changed files with 29 additions and 3 deletions

View File

@ -121,6 +121,7 @@ libdrm_la_LIBADD = @CLOCK_LIB@ -lm
libdrm_la_CPPFLAGS = -I$(top_srcdir)/include/drm libdrm_la_CPPFLAGS = -I$(top_srcdir)/include/drm
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
-fvisibility=hidden \
$(VALGRIND_CFLAGS) $(VALGRIND_CFLAGS)
libdrm_la_SOURCES = $(LIBDRM_FILES) libdrm_la_SOURCES = $(LIBDRM_FILES)

View File

@ -26,6 +26,7 @@ include Makefile.sources
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
-fvisibility=hidden \
-I$(top_srcdir) \ -I$(top_srcdir) \
$(PTHREADSTUBS_CFLAGS) \ $(PTHREADSTUBS_CFLAGS) \
-I$(top_srcdir)/include/drm -I$(top_srcdir)/include/drm

View File

@ -2,6 +2,7 @@ include Makefile.sources
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
-fvisibility=hidden \
-I$(top_srcdir) \ -I$(top_srcdir) \
$(PTHREADSTUBS_CFLAGS) \ $(PTHREADSTUBS_CFLAGS) \
-I$(top_srcdir)/include/drm -I$(top_srcdir)/include/drm

View File

@ -1,5 +1,6 @@
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
-fvisibility=hidden \
-I$(top_srcdir) \ -I$(top_srcdir) \
$(PTHREADSTUBS_CFLAGS) \ $(PTHREADSTUBS_CFLAGS) \
-I$(top_srcdir)/include/drm -I$(top_srcdir)/include/drm

View File

@ -3,6 +3,7 @@ include Makefile.sources
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
-fvisibility=hidden \
-I$(top_srcdir) \ -I$(top_srcdir) \
$(PTHREADSTUBS_CFLAGS) \ $(PTHREADSTUBS_CFLAGS) \
$(VALGRIND_CFLAGS) \ $(VALGRIND_CFLAGS) \

View File

@ -26,6 +26,7 @@ include Makefile.sources
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
-fvisibility=hidden \
-I$(top_srcdir) \ -I$(top_srcdir) \
$(PTHREADSTUBS_CFLAGS) \ $(PTHREADSTUBS_CFLAGS) \
$(PCIACCESS_CFLAGS) \ $(PCIACCESS_CFLAGS) \

View File

@ -2,6 +2,7 @@ include Makefile.sources
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
-fvisibility=hidden \
-I$(top_srcdir)/include/drm \ -I$(top_srcdir)/include/drm \
-I$(top_srcdir) -I$(top_srcdir)

View File

@ -2,6 +2,7 @@ include Makefile.sources
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
-fvisibility=hidden \
-I$(top_srcdir) \ -I$(top_srcdir) \
$(PTHREADSTUBS_CFLAGS) \ $(PTHREADSTUBS_CFLAGS) \
-I$(top_srcdir)/include/drm \ -I$(top_srcdir)/include/drm \

View File

@ -1,5 +1,6 @@
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
-fvisibility=hidden \
-I$(top_srcdir) \ -I$(top_srcdir) \
$(PTHREADSTUBS_CFLAGS) \ $(PTHREADSTUBS_CFLAGS) \
-I$(top_srcdir)/include/drm -I$(top_srcdir)/include/drm

View File

@ -26,6 +26,7 @@ include Makefile.sources
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
-fvisibility=hidden \
-I$(top_srcdir) \ -I$(top_srcdir) \
$(PTHREADSTUBS_CFLAGS) \ $(PTHREADSTUBS_CFLAGS) \
-I$(top_srcdir)/include/drm -I$(top_srcdir)/include/drm

View File

@ -4,7 +4,8 @@ AM_CPPFLAGS = \
AM_CFLAGS = \ AM_CFLAGS = \
@PTHREADSTUBS_CFLAGS@ \ @PTHREADSTUBS_CFLAGS@ \
$(WARN_CFLAGS) $(WARN_CFLAGS) \
-fvisibility=hidden
libdrm_tegra_ladir = $(libdir) libdrm_tegra_ladir = $(libdir)
libdrm_tegra_la_LTLIBRARIES = libdrm_tegra.la libdrm_tegra_la_LTLIBRARIES = libdrm_tegra.la

View File

@ -32,6 +32,7 @@ endif
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS)\ $(WARN_CFLAGS)\
-fvisibility=hidden \
-I $(top_srcdir)/include/drm \ -I $(top_srcdir)/include/drm \
-I $(top_srcdir) -I $(top_srcdir)

View File

@ -1,4 +1,5 @@
AM_CFLAGS = \ AM_CFLAGS = \
-fvisibility=hidden \
-I $(top_srcdir)/include/drm \ -I $(top_srcdir)/include/drm \
-I $(top_srcdir)/amdgpu \ -I $(top_srcdir)/amdgpu \
-I $(top_srcdir) \ -I $(top_srcdir) \

View File

@ -1,4 +1,5 @@
AM_CFLAGS = \ AM_CFLAGS = \
-fvisibility=hidden \
-I $(top_srcdir)/include/drm \ -I $(top_srcdir)/include/drm \
-I $(top_srcdir)/etnaviv \ -I $(top_srcdir)/etnaviv \
-I $(top_srcdir) -I $(top_srcdir)

View File

@ -1,6 +1,7 @@
AM_CFLAGS = \ AM_CFLAGS = \
-pthread \ -pthread \
$(WARN_CFLAGS)\ $(WARN_CFLAGS)\
-fvisibility=hidden \
-I $(top_srcdir)/include/drm \ -I $(top_srcdir)/include/drm \
-I $(top_srcdir)/libkms/ \ -I $(top_srcdir)/libkms/ \
-I $(top_srcdir)/exynos \ -I $(top_srcdir)/exynos \

View File

@ -4,7 +4,8 @@ AM_CPPFLAGS = \
-I$(top_srcdir) -I$(top_srcdir)
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS) $(WARN_CFLAGS) \
-fvisibility=hidden
noinst_LTLIBRARIES = libkms-test.la noinst_LTLIBRARIES = libkms-test.la

View File

@ -1,5 +1,6 @@
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS)\ $(WARN_CFLAGS)\
-fvisibility=hidden \
-I$(top_srcdir)/include/drm \ -I$(top_srcdir)/include/drm \
-I$(top_srcdir)/libkms/ \ -I$(top_srcdir)/libkms/ \
-I$(top_srcdir)/tests/ \ -I$(top_srcdir)/tests/ \

View File

@ -1,5 +1,6 @@
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS)\ $(WARN_CFLAGS)\
-fvisibility=hidden \
-I$(top_srcdir)/include/drm \ -I$(top_srcdir)/include/drm \
-I$(top_srcdir)/tests \ -I$(top_srcdir)/tests \
-I$(top_srcdir) -I$(top_srcdir)

View File

@ -3,6 +3,7 @@ include Makefile.sources
AM_CFLAGS = $(filter-out -Wpointer-arith, $(WARN_CFLAGS)) AM_CFLAGS = $(filter-out -Wpointer-arith, $(WARN_CFLAGS))
AM_CFLAGS += \ AM_CFLAGS += \
-fvisibility=hidden \
-pthread \ -pthread \
-I$(top_srcdir)/include/drm \ -I$(top_srcdir)/include/drm \
-I$(top_srcdir)/tests \ -I$(top_srcdir)/tests \

View File

@ -1,6 +1,7 @@
AM_CFLAGS = \ AM_CFLAGS = \
-pthread \ -pthread \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
-fvisibility=hidden \
-I$(top_srcdir)/include/drm \ -I$(top_srcdir)/include/drm \
-I$(top_srcdir)/nouveau \ -I$(top_srcdir)/nouveau \
-I$(top_srcdir) -I$(top_srcdir)

View File

@ -2,6 +2,7 @@ include Makefile.sources
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS)\ $(WARN_CFLAGS)\
-fvisibility=hidden \
-I$(top_srcdir)/include/drm \ -I$(top_srcdir)/include/drm \
-I$(top_srcdir)/tests \ -I$(top_srcdir)/tests \
-I$(top_srcdir) -I$(top_srcdir)

View File

@ -1,5 +1,6 @@
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS)\ $(WARN_CFLAGS)\
-fvisibility=hidden \
-I $(top_srcdir)/include/drm \ -I $(top_srcdir)/include/drm \
-I $(top_srcdir) -I $(top_srcdir)

View File

@ -3,7 +3,9 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/tegra \ -I$(top_srcdir)/tegra \
-I$(top_srcdir) -I$(top_srcdir)
AM_CFLAGS = $(WARN_CFLAGS) AM_CFLAGS = \
$(WARN_CFLAGS) \
-fvisibility=hidden
LDADD = \ LDADD = \
../../tegra/libdrm_tegra.la \ ../../tegra/libdrm_tegra.la \

View File

@ -1,5 +1,6 @@
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS)\ $(WARN_CFLAGS)\
-fvisibility=hidden \
-I$(top_srcdir)/include/drm \ -I$(top_srcdir)/include/drm \
-I$(top_srcdir)/tests \ -I$(top_srcdir)/tests \
-I$(top_srcdir) -I$(top_srcdir)

View File

@ -23,6 +23,7 @@ include Makefile.sources
AM_CFLAGS = \ AM_CFLAGS = \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
-fvisibility=hidden \
-I$(top_srcdir) \ -I$(top_srcdir) \
$(PTHREADSTUBS_CFLAGS) \ $(PTHREADSTUBS_CFLAGS) \
$(VALGRIND_CFLAGS) \ $(VALGRIND_CFLAGS) \