Commit 82d05cf7 authored by Ghislain MARY's avatar Ghislain MARY

Fix visibility problem on non-mingw platforms (all symbols were hidden so the...

Fix visibility problem on non-mingw platforms (all symbols were hidden so the plugin could not be loaded).
parent b062b1fd
......@@ -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
......@@ -27,3 +27,6 @@ libbcg729_la_SOURCES= LP2LSPConversion.c \
libbcg729_la_LDFLAGS= -no-undefined
INCLUDES= -I$(top_srcdir)/include
AM_CFLAGS=$(VISIBILITY_CFLAGS)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment