diff options
author | Miroslav Lichvar <mlichvar@redhat.com> | 2012-12-03 21:04:57 +0100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2012-12-04 17:45:06 +1100 |
commit | 19c78e58d7030cecf710c7106751d890ea03f982 (patch) | |
tree | 09528047affa34886e812f0ca3d0add51288d271 /src/libFLAC/Makefile.am | |
parent | 18e01547aca17f638917f875a312f027d779dff4 (diff) | |
download | flac-19c78e58d7030cecf710c7106751d890ea03f982.tar.gz |
Hide symbols with gcc.
With gcc >= 4 and ELF, set default visibility to hidden and make visible
only the symbols with FLAC_API or FLACPP_API.
A convenience libFLAC-static.la is created for test_libFLAC as it
depends on the hidden symbols.
Diffstat (limited to 'src/libFLAC/Makefile.am')
-rw-r--r-- | src/libFLAC/Makefile.am | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libFLAC/Makefile.am b/src/libFLAC/Makefile.am index b20e21ae..a63a3d0e 100644 --- a/src/libFLAC/Makefile.am +++ b/src/libFLAC/Makefile.am @@ -30,6 +30,7 @@ AM_CPPFLAGS = -I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include lib_LTLIBRARIES = libFLAC.la +noinst_LTLIBRARIES = libFLAC-static.la if DEBUG DEBUGCFLAGS = -DFLAC__OVERFLOW_DETECT endif @@ -106,7 +107,8 @@ extra_ogg_sources = \ endif # see 'http://www.gnu.org/software/libtool/manual/libtool.html#Libtool-versioning' for numbering convention libFLAC_la_LDFLAGS = -version-info 10:0:2 $(LOCAL_EXTRA_LDFLAGS) @LT_NO_UNDEFINED@ -libFLAC_la_SOURCES = \ + +libFLAC_sources = \ bitmath.c \ bitreader.c \ bitwriter.c \ @@ -125,3 +127,9 @@ libFLAC_la_SOURCES = \ stream_encoder_framing.c \ window.c \ $(extra_ogg_sources) + +libFLAC_la_SOURCES = $(libFLAC_sources) + +# needed for test_libFLAC +libFLAC_static_la_LIBADD = $(LOCAL_EXTRA_LIBADD) +libFLAC_static_la_SOURCES = $(libFLAC_sources) |