FWIW, find attached an updated version of the hackish patch which
applies to 2.2.6b. (Source:
http://code.google.com/p/tesjeract/source/browse/trunk/native/unix/libtool-2.2.6-as-needed.patch?spec=svn67&r=67)

cu andreas
Bug-Debian: http://bugs.debian.org/347650
Last-Update: 2011-03-06

--- libpano13-2.9.18~rc1+dfsg.orig/config/ltmain.sh
+++ libpano13-2.9.18~rc1+dfsg/config/ltmain.sh
@@ -4716,6 +4716,11 @@ func_mode_link ()
        arg=$func_stripname_result
        ;;
 
+      -Wl,--as-needed|-Wl,--no-as-needed)
+       deplibs="$deplibs $arg"
+       continue
+       ;;
+
       -Wl,*)
        func_stripname '-Wl,' '' "$arg"
        args=$func_stripname_result
@@ -5067,6 +5072,15 @@ func_mode_link ()
        lib=
        found=no
        case $deplib in
+       -Wl,--as-needed|-Wl,--no-as-needed)
+         if test "$linkmode,$pass" = "prog,link"; then
+           compile_deplibs="$deplib $compile_deplibs"
+           finalize_deplibs="$deplib $finalize_deplibs"
+         else
+           deplibs="$deplib $deplibs"
+         fi
+         continue
+         ;;
        
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
          if test "$linkmode,$pass" = "prog,link"; then
            compile_deplibs="$deplib $compile_deplibs"

Reply via email to