On 06/11/11 14:16, Kurt Roeckx wrote:
Package: autogen
Version: 1:5.11.9-0.2
Severity: serious

Hi,

I'm getting this:
$ autoopts-config --ldflags
  -Wl,-R/usr/lib -L/usr/lib -lopts

So things using autoopts-config now set an rpath to /usr/lib/, and
it really shouldn't do that for things that are in the
default search path.

There really is no portable way to determine if a particular path
is in the default search path or not.  Especially since some distros
like /lib others like /lib64 on top of the /usr/lib variations.

That not withstanding, the change of the cleanup code in the script from this:

test -n "${ldopts}" && {
    ldflags="${ldopts}${libdir} ${ldflags}"
    libs=${ldflags}
}

to this:

case "${libdir}" in
/lib | /lib64 | /usr/lib | /usr/lib64 )
    ldopts=''
    ldflags=-lopts
    ;;

* )
    test -n "${ldopts}" && \
        ldflags="${ldopts}${libdir} ${ldflags}"
    ;;
    esac
}
libs=${ldflags}

should work until someone claims that one of those four directories
is not on *their* default search path so they are broken.  You cannot
go mucking around in /etc/ld.so.conf both because it isn't portable
and because it may not actually match what ld.so is doing.



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to