> Here's a branch that adds --with-system-library-path and
> --with-system-include-path configure options to pkg-config, with the
> expectation that pkg-config's Debian packaging can determine the right
> values for these paths:

> http://git.debian.org/?p=users/smcv/multiarch/pkg-config.git;a=shortlog;h=refs/heads/multiarch

This git repository has gone missing sometime in the past year. :(  Please
send patches to the BTS instead of referring to other websites for them!  Do
you still have a copy of this --with-system-library-path implementation
somewhere else?

A more refined implementation of the directory query for use in debian/rules
is:

$ for opt in '' $(${CC-gcc} -print-multi-lib | sed -n -e's/.*;@/-/p'); do
    gcc $opt -print-search-dirs | sed -n -e's/^libraries: =//p' \
    | sed -e's/:/\n/g' | xargs -n1 readlink -f | grep -v 'gcc\|/[0-9.]\+$'
  done | sort -u

on Ubuntu/amd64, for instance, this returns:

/lib
/lib32
/usr/lib
/usr/lib32
/usr/lib/x86_64-linux-gnu
/usr/x86_64-linux-gnu/lib

(I think the absence of the multiarch directory for i386 here may be a bug
in the gcc multiarch path; there is certainly code in gcc to map -m32 to
i386-linux-gnu... this will need investigating later.)

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org



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

Reply via email to