Daniel Veillard wrote:
On Fri, Oct 23, 2009 at 12:09:19AM +0300, Roumen Petrov wrote:
Daniel Veillard wrote:
On Thu, Oct 22, 2009 at 12:26:27AM +0300, Roumen Petrov wrote:
Matthias Jung wrote:
[SNIP]
My suggestion as long -M ld option is not clear ;-)
VERSION_SCRIPT_FLAGS=
$($LD --help 2>&1 | grep -- --version-script>/dev/null)&& \
VERSION_SCRIPT_FLAGS=-Wl,--version-script=
May be is time project to upgrade libtool to 2.+ version where
exist flag with_gnu_ld.
Argh, maybe that's the problem, any suggestion on how to best do this ?
[SNIP]
So the proposed solution is attached as file "libxml2+gnuld.patch":
if configure (libtool macro) detect gnu binutils linker use
"-Wl,--version-script=" otherwise on sunos use "-Wl,-M -Wl,"
Roumen
diff --git a/configure.in b/configure.in
index 3e4a601..fbfebf6 100644
--- a/configure.in
+++ b/configure.in
@@ -73,10 +73,14 @@ dnl if the system support linker version scripts for symbol versioning
dnl then add it
dnl
VERSION_SCRIPT_FLAGS=
-$(/usr/bin/ld --help 2>&1 | grep -- --version-script >/dev/null) && \
- VERSION_SCRIPT_FLAGS=-Wl,--version-script=
-test "`uname`" == "SunOS" && \
- VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"
+# lt_cv_prog_gnu_ld is from libtool 2.+
+if test "$lt_cv_prog_gnu_ld" = yes; then
+ VERSION_SCRIPT_FLAGS=-Wl,--version-script=
+else
+ case $host in
+ *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
+ esac
+fi
AC_SUBST(VERSION_SCRIPT_FLAGS)
AM_CONDITIONAL([USE_VERSION_SCRIPT], [test -n "$VERSION_SCRIPT_FLAGS"])
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml