summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2002-12-12 10:51:31 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2002-12-12 10:51:31 +0000
commit83c217b4f8c8f0fab46e86a86ca694852aa049fb (patch)
treefa2b8bdae613628078b4b9f65a3b93721c6546da
parent5cf1c4f3e57672107c8b738d6002892f0ec8b83f (diff)
downloadxine-lib-83c217b4f8c8f0fab46e86a86ca694852aa049fb.tar.gz
xine-lib-83c217b4f8c8f0fab46e86a86ca694852aa049fb.tar.bz2
- Disable -export-symbols-regex when the GNU linker is used. libtool + GNU ld
will strip the wrong symbol table, making a debug install of the xine plugins undebuggable. - Add $(top_builddir)/src/xine-engine to the include path, to pick up the new autoconf generated xineintl.h file (when building with separate source and object hierarchies). CVS patchset: 3492 CVS date: 2002/12/12 10:51:31
-rw-r--r--configure.ac17
1 files changed, 15 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index c6e4b3b6b..f55d6e1ae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -687,7 +687,7 @@ AC_ARG_ENABLE(fpic,
dnl ---------------------------------------------
dnl Build xine plugins with only the "xine_plugin_info" symbol exported
-dnl (let the user disable this feature, in case libtool does not offer it
+dnl (let the user disable this feature, in case libtool does not offer this
dnl feature on the target platform)
dnl ---------------------------------------------
AC_ARG_ENABLE(min-symtab,
@@ -695,6 +695,19 @@ AC_ARG_ENABLE(min-symtab,
XINE_PLUGIN_MIN_SYMS="",
XINE_PLUGIN_MIN_SYMS="-export-symbols-regex xine_plugin_info")
+if test "$with_gnu_ld" = yes; then
+ dnl
+ dnl -export-symbols-regex in libtool 1.4.X is broken, when GNU ld is
+ dnl used for linking. libtool / gnu ld does not touch the dynamic
+ dnl symbol table, but removes the unwanted symbols from the
+ dnl symbol table => The debug versions of the the xine-lib plugins
+ dnl cannot be debugged.
+ dnl
+ dnl Don't use libtool's -export-symbols-regex on such a platform for now
+ dnl
+ XINE_PLUGIN_MIN_SYMS=""
+fi
+
AC_SUBST(XINE_PLUGIN_MIN_SYMS)
dnl ---------------------------------------------
@@ -1081,7 +1094,7 @@ AC_SUBST(w32_path)
dnl ---------------------------------------------
dnl some include paths ( !!! DO NOT REMOVE !!! )
dnl
-INCLUDES='-I$(top_srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/src/xine-engine -I$(top_srcdir)/src/xine-utils $(INTLDIR)'
+INCLUDES='-I$(top_srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_builddir)/src/xine-engine -I$(top_srcdir)/src/xine-engine -I$(top_srcdir)/src/xine-utils $(INTLDIR)'
AC_SUBST(INCLUDES)