Hi Nickolay, 

thanks for the comment - i have this already, the problem is that
libtool converts (for some reason whatever) :

        -L/nfsroot.../usr/lib -lglib-2.0

into 

        -L/nfsroot.../usr/lib /usr/lib/libglib-2.0.so

and i dont know why it actually does this ??? 

this causes the problem that the linker wants to link agains a specified
FILE (!) instead of searching the lib in the provided search path !?!?!

if it would simply do it as its stated, it would work ... however, i
have come up with a really ugly hack for ltmain.sh which i have attached
to this mail.

this patch doesnt change the -l option if the scripts wants this and the
pathstarts with "/usr/lib" YEAH (yet another hack!) - it works :-)

anyhow it will need som kind of gnuru ;) to understand whats happening
here with libtool/autoconf/configure/...

but i'm out of knowledge here ... spent my whole day on this ... 

greets,
mexx.
diff -ur sofia-sip-1.11.9.orig/ltmain.sh sofia-sip-1.11.9.crosscompile-patch/ltmain.sh
--- sofia-sip-1.11.9.orig/ltmain.sh	2006-03-11 19:49:04.000000000 +0100
+++ sofia-sip-1.11.9.crosscompile-patch/ltmain.sh	2006-07-06 22:08:50.947768750 +0200
@@ -2653,6 +2653,10 @@
 	    case $hardcode_action in
 	    immediate | unsupported)
 	      if test "$hardcode_direct" = no; then
+	        # ugly hack to avoid linking against /usr/lib/libglib-2.0.so
+	        if test "$dir" = "/usr/lib" ; then
+                  add="-l$name"
+                else
 		add="$dir/$linklib"
 		case $host in
 		  *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
@@ -2674,6 +2678,7 @@
 		      fi
 		    fi
 		esac
+		fi
 	      elif test "$hardcode_minus_L" = no; then
 		case $host in
 		*-*-sunos*) add_shlibpath="$dir" ;;
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to