From 82d05cf71a212158f86241ba21651ce025fddefb Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 31 Oct 2013 15:43:55 +0100 Subject: [PATCH] Fix visibility problem on non-mingw platforms (all symbols were hidden so the plugin could not be loaded). --- configure.ac | 4 +++- src/Makefile.am | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 611d607..85aba74 100644 --- a/configure.ac +++ b/configure.ac @@ -46,14 +46,16 @@ AC_CONFIG_FILES([ libbcg729.pc ]) +VISIBILITY_CFLAGS= case "$target_os" in *mingw*) CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0501" ;; *) - CFLAGS="$CFLAGS -fvisibility=hidden" + VISIBILITY_CFLAGS="-fvisibility=hidden" ;; esac +AC_SUBST(VISIBILITY_CFLAGS) AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am index af0dff0..c873934 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -27,3 +27,6 @@ libbcg729_la_SOURCES= LP2LSPConversion.c \ libbcg729_la_LDFLAGS= -no-undefined INCLUDES= -I$(top_srcdir)/include + +AM_CFLAGS=$(VISIBILITY_CFLAGS) +