emacs-devel
[Top][All Lists]
Advanced

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

Re: gcc automatically finds /usr/local/lib/libXXX


From: Gerd Moellmann
Subject: Re: gcc automatically finds /usr/local/lib/libXXX
Date: 27 Nov 2000 15:52:58 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.92

Kenichi Handa <address@hidden> writes:

> ld.so.1: emacs21: fatal: libpng.so.2: open failed: No such file or directory
> Killed
> 
> One solution is to add all library directories that gcc
> automatically tries in LD_RUN_PATH.   We can find such
> directories by this script.
> ----------------------------------------------------------------------
> #!/bin/sh
> 
> set `gcc -print-search-dirs | grep -e '^libraries:'`
> shift
> dirs=`echo $1 | sed -e "s/:/ /g"`
> run_path=""
> for d in ${dirs}; do
>   if [ x"${d}" != x/usr/lib/ ] ; then
>     ls ${d}/*.so > /dev/null 2>&1 && run_path="${run_path} -R${d}"
>   fi
> done
> echo "LD_SWITCH_X_SITE_AUX should contain ${run_path}."
> ----------------------------------------------------------------------
> 
> But, I don't know how to include this kind of code without
> breaking other hacks done in configure.in.

That's one of the problem.  Another is if -R is the right option on
all systems, and IIRC from looking at Autoconf, if -R must be followed
by a space or may not be followed by a space.

We're opening a whole new can of worms here, wrt to the build process,
which I'd like to avoid at this point if possible.  Would a hint
somewhere to set LD_RUN_PATH (IIRC) suffice for now?




reply via email to

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