]> sourceware.org Git - libabigail.git/commit
Prepare support for symbol visibility control
authorDodji Seketeli <dodji@redhat.com>
Fri, 22 Jul 2016 09:01:41 +0000 (11:01 +0200)
committerDodji Seketeli <dodji@redhat.com>
Tue, 26 Jul 2016 18:04:04 +0000 (20:04 +0200)
commita126e925837bdc5ef6340150aa00ba2df6ec44e2
tree3f8f46d8e4af86e9ae2413b8f57ce4eab1364c66
parent1a00cad493ade8b34bfb60b8398225339fa65dd3
Prepare support for symbol visibility control

While working on something else, I started to prepare the support for
visibility control in the library.  This patch detects that we are
using a compiler that supports GCC's visibility control attributes and
defines macros ABG_HIDDEN, ABG_EXPORTED,
ABG_{BEGIN,END}_EXPORT_DECLARATIONS to control the visibility of
declarations accordingly.  These are not yet used but using them
should now be easy.

* configure.ac: Detect compiler support for
__attribute__((visibility("hidden")) and define the
HAS_GCC_VISIBILITY_ATTRIBUTE macro accordingly.  Update the
configuration report.
* src/abg-internal.h: New internal header file that defines macros
to be used in the source code to control declaration visibility.
* src/Makefile.am: Add abg-internal.h to source distribution.  Add
src/ to the include search path.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
configure.ac
src/Makefile.am
src/abg-internal.h [new file with mode: 0644]
This page took 0.032444 seconds and 5 git commands to generate.