diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 8601206f..ab8ae4e5 100644 --- a/configure.in +++ b/configure.in @@ -503,6 +503,26 @@ fi AM_CONDITIONAL(ENABLE_MAN, test x$enable_man != xno) dnl ******************************************************** +dnl * Options to pass to libtool +dnl ******************************************************** + +# Note that -module isn't included here since automake needs to see it to know +# that something like pango-arabic-fc.la is a valid libtool archive +# +if test "$os_win32" != yes; then + # libtool option to control which symbols are exported + # right now, symbols starting with _ are not exported + LIBRARY_LIBTOOL_OPTIONS="-version-info $LT_VERSION_INFO "'-export-symbols-regex "^pango_.*"' + MODULE_LIBTOOL_OPTIONS="-export-dynamic -avoid-version "'-export-symbols-regex "^script_engine_.*"' +else + # We currently use .def files on Windows (for gdk-pixbuf, gdk and gtk) + LIBRARY_LIBTOOL_OPTIONS="-version-info $LT_VERSION_INFO -no-undefined" + MODULE_LIBTOOL_OPTIONS="-export-dynamic -avoid-version -no-undefined" +fi +AC_SUBST(LIBRARY_LIBTOOL_OPTIONS) +AC_SUBST(MODULE_LIBTOOL_OPTIONS) + +dnl ******************************************************** dnl * See whether we need to load our modules as .la files * dnl ******************************************************** |