--- There are 3 parts:
1/ Move libraries being linked to LIBADD See http://sourceware.org/autobook/autobook/autobook_92.html 2/ Call AC_LIBTOOL_WIN32_DLL macro See http://sourceware.org/autobook/autobook/autobook_254.html 3/ Hack lt_cv_deplibs_check_method to allow linking static libraries inside a shared library (Hack comes from VLC) 'make' will generate both static and shared library for windows configure.ac | 7 +++++++ src/Makefile.am | 3 ++- 2 files changed, 9 insertions(+), 1 deletions(-) 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 d3321f4..a489587 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -52,7 +52,8 @@ endif libaacs_ladir= $(includedir)/libaacs libaacs_la_HEADERS= libaacs/aacs.h file/filesystem.h libaacs/aacs-version.h -libaacs_la_LDFLAGS= $(LIBGCRYPT_LIBS) -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 -- 1.7.8.3 _______________________________________________ libaacs-devel mailing list [email protected] http://mailman.videolan.org/listinfo/libaacs-devel
