libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing header <dl.h> on Uw7


From: Gary V . Vaughan
Subject: Re: Missing header <dl.h> on Uw7
Date: Mon, 23 Apr 2001 01:50:09 +0100

On Saturday 21 April 2001 10:02 pm, Matthew Schalit wrote:
> The only other thing I noticed was this section in libltdl/configure:
> ---------------------------------------------------------------------------
> echo "$as_me:7795: checking whether deplibs are loaded by dlopen" >&5
> echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
> if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
>   echo $ECHO_N "(cached) $ECHO_C" >&6
> else
>         # PORTME does your system automatically load deplibs for dlopen()?
>         libltdl_cv_sys_dlopen_deplibs=unknown
>         case "$host_os" in
>         linux*)
>           libltdl_cv_sys_dlopen_deplibs=yes
>           ;;
>         netbsd*)
>           libltdl_cv_sys_dlopen_deplibs=yes
>           ;;
>         solaris*)
>           libltdl_cv_sys_dlopen_deplibs=yes
>           ;;
>         esac
>
> fi
> ---------------------------------------------------------------------------
>
>
> I noticed that I got an unknown from this.  I don't understand what it's
> checking for, so I don't know how to ask about it or fix it.

Setting this variable to yes tells libltdl that if a dlopened library depends 
an another unloaded library that the OS takes care of loading the deplib too. 
For instance, if I use libltdl to load libgtk.so into my app, will the OS 
also load libgdk, libglib, libX11 etc for me?

If the variable is not set to yes, libltdl will dlopen() those libraries for 
me (and recursively any of their deplibs) before trying to perform the dlopen 
actually asked for.  Needless to say this slows down dlopening a lot, 
especially when it is not needed.

There is some discussion obout this issue about 6 weeks ago in the mail 
archives.

Cheers,
        Gary.
-- 
  ___              _   ___   __              _         mailto: address@hidden
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       address@hidden
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]