diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2015-03-31 22:07:13 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-04-28 11:19:15 +0100 |
commit | 104c895f650cac7741c12e10ee78bb2fca2cbd49 (patch) | |
tree | 3cff71d287b5b1a0276782ba8b5862848b786f7d | |
parent | 42465feb9759ef5a6d79d7e628510cd0a081f913 (diff) | |
download | libdrm-104c895f650cac7741c12e10ee78bb2fca2cbd49.tar.gz libdrm-104c895f650cac7741c12e10ee78bb2fca2cbd49.tar.bz2 libdrm-104c895f650cac7741c12e10ee78bb2fca2cbd49.zip |
drm: remove no longer needed VISIBILITY_CFLAGS
With earlier commits we've annotated the private symbols, thus
we no longer require the -fvisibility=hidden CFLAGS.
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Damien Lespiau <damien.lespiau@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: Michel Dänzer <michel.daenzer@amd.com>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Thierry Reding <treding@nvidia.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r-- | configure.ac | 15 | ||||
-rw-r--r-- | exynos/Makefile.am | 1 | ||||
-rw-r--r-- | freedreno/Makefile.am | 1 | ||||
-rw-r--r-- | intel/Makefile.am | 1 | ||||
-rw-r--r-- | nouveau/Makefile.am | 1 | ||||
-rw-r--r-- | omap/Makefile.am | 1 | ||||
-rw-r--r-- | radeon/Makefile.am | 1 | ||||
-rw-r--r-- | tegra/Makefile.am | 1 |
8 files changed, 0 insertions, 22 deletions
diff --git a/configure.ac b/configure.ac index 76cf91eb..c25a8133 100644 --- a/configure.ac +++ b/configure.ac @@ -403,21 +403,6 @@ AC_ARG_WITH([kernel-source], [kernel_source="$with_kernel_source"]) AC_SUBST(kernel_source) -dnl Add flags for gcc and g++ -if test "x$GCC" = xyes; then - # Enable -fvisibility=hidden if using a gcc that supports it - save_CFLAGS="$CFLAGS" - AC_MSG_CHECKING([whether $CC supports -fvisibility=hidden]) - VISIBILITY_CFLAGS="-fvisibility=hidden" - CFLAGS="$CFLAGS $VISIBILITY_CFLAGS" - AC_LINK_IFELSE([AC_LANG_PROGRAM()], AC_MSG_RESULT([yes]), - [VISIBILITY_CFLAGS=""; AC_MSG_RESULT([no])]); - - # Restore CFLAGS; VISIBILITY_CFLAGS are added to it where needed. - CFLAGS=$save_CFLAGS - AC_SUBST([VISIBILITY_CFLAGS]) -fi - AC_MSG_CHECKING([whether $CC supports __attribute__((visibility))]) AC_LINK_IFELSE([AC_LANG_PROGRAM([ int foo_default( void ) __attribute__((visibility("default"))); diff --git a/exynos/Makefile.am b/exynos/Makefile.am index 0136a619..f99f8981 100644 --- a/exynos/Makefile.am +++ b/exynos/Makefile.am @@ -1,6 +1,5 @@ AM_CFLAGS = \ $(WARN_CFLAGS) \ - $(VISIBILITY_CFLAGS) \ -I$(top_srcdir) \ $(PTHREADSTUBS_CFLAGS) \ -I$(top_srcdir)/include/drm diff --git a/freedreno/Makefile.am b/freedreno/Makefile.am index 27e6aa6c..07208675 100644 --- a/freedreno/Makefile.am +++ b/freedreno/Makefile.am @@ -3,7 +3,6 @@ include Makefile.sources AM_CFLAGS = \ $(WARN_CFLAGS) \ - $(VISIBILITY_CFLAGS) \ -I$(top_srcdir) \ $(PTHREADSTUBS_CFLAGS) \ -I$(top_srcdir)/include/drm diff --git a/intel/Makefile.am b/intel/Makefile.am index 09bfbae5..de3baab9 100644 --- a/intel/Makefile.am +++ b/intel/Makefile.am @@ -26,7 +26,6 @@ include Makefile.sources AM_CFLAGS = \ $(WARN_CFLAGS) \ - $(VISIBILITY_CFLAGS) \ -I$(top_srcdir) \ $(PTHREADSTUBS_CFLAGS) \ $(PCIACCESS_CFLAGS) \ diff --git a/nouveau/Makefile.am b/nouveau/Makefile.am index 2f613517..25ea6dc1 100644 --- a/nouveau/Makefile.am +++ b/nouveau/Makefile.am @@ -2,7 +2,6 @@ include Makefile.sources AM_CFLAGS = \ $(WARN_CFLAGS) \ - $(VISIBILITY_CFLAGS) \ -I$(top_srcdir) \ $(PTHREADSTUBS_CFLAGS) \ -I$(top_srcdir)/include/drm \ diff --git a/omap/Makefile.am b/omap/Makefile.am index b34fba6e..599bb9de 100644 --- a/omap/Makefile.am +++ b/omap/Makefile.am @@ -1,6 +1,5 @@ AM_CFLAGS = \ $(WARN_CFLAGS) \ - $(VISIBILITY_CFLAGS) \ -I$(top_srcdir) \ $(PTHREADSTUBS_CFLAGS) \ -I$(top_srcdir)/include/drm diff --git a/radeon/Makefile.am b/radeon/Makefile.am index d9d0b7ec..25c03d3c 100644 --- a/radeon/Makefile.am +++ b/radeon/Makefile.am @@ -26,7 +26,6 @@ include Makefile.sources AM_CFLAGS = \ $(WARN_CFLAGS) \ - $(VISIBILITY_CFLAGS) \ -I$(top_srcdir) \ $(PTHREADSTUBS_CFLAGS) \ -I$(top_srcdir)/include/drm diff --git a/tegra/Makefile.am b/tegra/Makefile.am index efa14f9c..fb40be55 100644 --- a/tegra/Makefile.am +++ b/tegra/Makefile.am @@ -4,7 +4,6 @@ AM_CPPFLAGS = \ AM_CFLAGS = \ @PTHREADSTUBS_CFLAGS@ \ - $(VISIBILITY_CFLAGS) \ $(WARN_CFLAGS) libdrm_tegra_ladir = $(libdir) |