configure: Support symbol visibility when available
authorThierry Reding <treding@nvidia.com>
Wed, 19 Feb 2014 14:56:50 +0000 (15:56 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 30 Jul 2014 14:58:14 +0000 (16:58 +0200)
commit5d8357976a84396ebe10ed5a0d6ba1b79ccdcf2e
tree5986dd94ff3b108a5aa9fd7fdb51f9656200ed7e
parentd6861609b2b887612d652bb2be7c39f199802937
configure: Support symbol visibility when available

Checks whether or not the compiler supports the -fvisibility option. If
so it sets the VISIBILITY_CFLAGS variable which can be added to the per
directory AM_CFLAGS where appropriate.

By default all symbols will be hidden via the VISIBILITY_CFLAGS. The
drm_public macro can be used to mark symbols that should be exported.

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Makefile.am
configure.ac
libdrm.h [new file with mode: 0644]