Martin Lucina writes ("Toolchain directory structure changes (was Re: destdir 
support for Rumprun)"):
> Regarding 3), this is a **hard** and distribution-specific problem to get
> right. (Ian: feel free to point at Debian threads about how long multiarch
> took to get sorted.) I don't think we have the time or resources to try and
> figure this out ourselves.

I would treat the toolchain as a standard cross toolchain.

For example this package

http://emdebian.org/tools/debian/pool/main/c/cross-gcc-4.9-armhf/gcc-4.9-arm-linux-gnueabihf_4.9.2-10_i386.deb

contains these files

drwxr-xr-x root/root         0 2015-03-14 04:53 ./
drwxr-xr-x root/root         0 2015-03-14 04:53 ./usr/
[ various docs in /usr/share/man and /usr/share/doc omitted ]
drwxr-xr-x root/root         0 2015-03-14 04:53 ./usr/bin/
-rwxr-xr-x root/root     23276 2015-03-14 04:53 
./usr/bin/arm-linux-gnueabihf-gcc-ranlib-4.9
-rwxr-xr-x root/root     23276 2015-03-14 04:53 
./usr/bin/arm-linux-gnueabihf-gcc-nm-4.9
-rwxr-xr-x root/root    776776 2015-03-14 04:53 
./usr/bin/arm-linux-gnueabihf-gcc-4.9
-rwxr-xr-x root/root     23276 2015-03-14 04:53 
./usr/bin/arm-linux-gnueabihf-gcc-ar-4.9
-rwxr-xr-x root/root    472208 2015-03-14 04:53 
./usr/bin/arm-linux-gnueabihf-gcov-4.9
drwxr-xr-x root/root         0 2015-03-14 04:53 ./usr/lib/
drwxr-xr-x root/root         0 2015-03-14 04:53 ./usr/lib/gcc/
drwxr-xr-x root/root         0 2015-03-14 04:53 
./usr/lib/gcc/arm-linux-gnueabihf/
drwxr-xr-x root/root         0 2015-03-14 04:53 
./usr/lib/gcc/arm-linux-gnueabihf/4.9/
-rwxr-xr-x root/root  14668600 2015-03-14 04:53 
./usr/lib/gcc/arm-linux-gnueabihf/4.9/lto1
-rw-r--r-- root/root       290 2015-03-14 04:52 
./usr/lib/gcc/arm-linux-gnueabihf/4.9/libsanitizer.spec
-rwxr-xr-x root/root    644936 2015-03-14 04:53 
./usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
-rwxr-xr-x root/root    488720 2015-03-14 04:53 
./usr/lib/gcc/arm-linux-gnueabihf/4.9/collect2
-rw-r--r-- root/root       164 2015-03-14 04:52 
./usr/lib/gcc/arm-linux-gnueabihf/4.9/libgomp.spec
lrwxrwxrwx root/root         0 2015-03-14 04:53 
./usr/share/doc/gcc-4.9-arm-linux-gnueabihf -> cpp-4.9-arm-linux-gnueabihf

For libraries, you should use the Debian multiarch layout, which is
/usr/include/<triplet> for (target-)arch-specific headers.


Also I think your use of DESTDIR is wrong.  I think you are confusing
DESTDIR and prefix.  (NB that I think that xen.git has some confusion
in this area.  Don't use it as a template.)

DESTDIR is for installing into a temporary tree which something (eg a
package manager) is going to copy later.  Ie, for building binary
packages:
  https://www.gnu.org/prep/standards/html_node/DESTDIR.html#DESTDIR

prefix is the thing which might be /usr:
  
https://www.gnu.org/prep/standards/html_node/Directory-Variables.html#Directory-Variables


Ian.

Reply via email to