libtool
[Top][All Lists]
Advanced

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

Re: searching for libraries on RHEL/amd64


From: Albert Chin
Subject: Re: searching for libraries on RHEL/amd64
Date: Sat, 14 May 2005 16:48:05 -0500
User-agent: Mutt/1.5.6i

On Sat, May 14, 2005 at 04:14:14PM -0500, Albert Chin wrote:
> Moreoever, libtool.m4 has (from the 2.0 branch):
>   # Append ld.so.conf contents to the search path
>   if test -f /etc/ld.so.conf; then
>     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", 
> \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf 
> | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' 
> ' '`
>     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
>   fi

BTW, how about using the SEARCH_DIR directories from:
  $ ld --verbose
rather than hardcoding /lib and /usr/lib?

-- 
albert chin (address@hidden)




reply via email to

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