[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [anjuta] libtool: link: cannot find the library ''
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: [anjuta] libtool: link: cannot find the library ''
- From: Jacob Meuser <jakemsr_(_at_)_jakemsr_(_dot_)_com>
- Date: Wed, 12 May 2004 22:58:12 -0700
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org
On Wed, May 12, 2004 at 04:51:06PM +0200, Marc Winiger wrote:
> Hi folks
>
> I'm just trying to make an anjuta-1.2.2 port.
ports@ might be a better forum ...
> If i replace the $LIBTOOL in the Makefile thru the system wide libtool
> (instead of /bin/sh ../libtool), it compiles without an error. But that
> can't be the solution....
Why not?
> How can I find out which library can't be found?
I'm putting 99 cents on
> -pthread
I don't know what version of libtool you're using, but something along
the lines of :
--- admin/ltmain.sh.orig 2003-06-13 19:41:49.000000000 -0700
+++ admin/ltmain.sh 2004-05-05 14:34:59.000000000 -0700
@@ -1038,6 +1038,7 @@ compiler."
esac
case "$deplibs " in
*" -L$dir "*) ;;
+ -pthread) ;;
*)
deplibs="$deplibs -L$dir"
lib_search_path="$lib_search_path $dir"
@@ -1113,6 +1114,16 @@ compiler."
-o) prev=output ;;
+ -pthread)
+ case $host in
+ *-*-openbsd* | *-*-freebsd*)
+ # Use the -pthread flag for pthreads.
+ deplibs="$deplibs $arg"
+ ;;
+ esac
+ continue
+ ;;
+
-release)
prev=release
continue
@@ -1411,6 +1422,17 @@ compiler."
lib=
found=no
case $deplib in
+ -pthread)
+ # -pthread is never a libtool library
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs"
+ fi
+ continue
+ ;; # -pthread
-l*)
if test $linkmode = oldlib && test $linkmode = obj; then
$echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
@@ -1772,10 +1794,10 @@ compiler."
continue
fi
- if test "$installed" = no; then
- notinst_deplibs="$notinst_deplibs $lib"
- need_relink=yes
- fi
+ #if test "$installed" = no; then
+ # notinst_deplibs="$notinst_deplibs $lib"
+ # need_relink=yes
+ #fi
if test -n "$old_archive_from_expsyms_cmds"; then
# figure out the soname
Might get you through.
--
<jakemsr_(_at_)_jakemsr_(_dot_)_com>
Visit your host, monkey.org