Browse Source

Fix visibility problem on non-mingw platforms (all symbols were hidden so the plugin could not be loaded).

pull/1/head
Ghislain MARY 12 years ago
parent
commit
82d05cf71a
2 changed files with 6 additions and 1 deletions
  1. +3
    -1
      configure.ac
  2. +3
    -0
      src/Makefile.am

+ 3
- 1
configure.ac View File

@ -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

+ 3
- 0
src/Makefile.am View File

@ -27,3 +27,6 @@ libbcg729_la_SOURCES= LP2LSPConversion.c \
libbcg729_la_LDFLAGS= -no-undefined
INCLUDES= -I$(top_srcdir)/include
AM_CFLAGS=$(VISIBILITY_CFLAGS)

Loading…
Cancel
Save