libaacs | branch: master | Rafaël Carré <[email protected]> | Thu Feb 9 12:38:20 2012 +0200| [de54cf84a82c51ada9631022a6ad0a929247f425] | committer: hpi1
Build shared library on windows Call AC_LIBTOOL_WIN32_DLL macro See http://sourceware.org/autobook/autobook/autobook_254.html Hack lt_cv_deplibs_check_method to allow linking static libraries inside a shared library (Hack comes from VLC) > http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=de54cf84a82c51ada9631022a6ad0a929247f425 --- ChangeLog | 1 + configure.ac | 7 +++++++ src/Makefile.am | 2 +- 3 files changed, 9 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index 11a8c69..fc3db42 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ ????-??-??: + - Fixed building Win32 DLL - Fixed segfault when mount point path can't be resolved - Do not export internal symbols from generated parser/lexer - Do not distribute generated parser files diff --git a/configure.ac b/configure.ac index a780c06..5d9a8fb 100644 --- a/configure.ac +++ b/configure.ac @@ -79,9 +79,16 @@ AC_ARG_ENABLE([debug], [use_debug=$enableval], [use_debug=yes]) +dnl override platform specific check for dependent libraries +dnl otherwise libtool linking of shared libraries will +dnl fail on anything other than pass_all. +AC_CACHE_VAL(lt_cv_deplibs_check_method, + [lt_cv_deplibs_check_method=pass_all]) + # required programs AC_PROG_CC AC_PROG_LIBTOOL +AC_LIBTOOL_WIN32_DLL AM_PROG_LEX AC_PROG_YACC diff --git a/src/Makefile.am b/src/Makefile.am index 2007dd5..a489587 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -52,7 +52,7 @@ endif libaacs_ladir= $(includedir)/libaacs libaacs_la_HEADERS= libaacs/aacs.h file/filesystem.h libaacs/aacs-version.h -libaacs_la_LDFLAGS= -version-info $(LIB_VERSION_INFO) +libaacs_la_LDFLAGS= -no-undefined -version-info $(LIB_VERSION_INFO) libaacs_la_LIBADD = $(LIBGCRYPT_LIBS) pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libaacs.pc _______________________________________________ libaacs-devel mailing list [email protected] http://mailman.videolan.org/listinfo/libaacs-devel
