I would like to build the current OSELAS.Toolchain-2011.11.1 with
ptxdist-2011.11.0 as recommended, and package it for further distribution
as an Arch Linux package. Building and installing normally as documented
is not a problem, but I fail to fully grasp what settings are necessary to
install the files to an arbitrarily prefixed location, ie.
/tmp/makepkg/pkg/opt instead of /opt, without messing up GCC's sysroot,
search-dirs and friends.
Exporting PTX_AUTOBUILD_DESTDIR=/tmp/makepkg/pkg before running ptxdist go
seemed to install the toolchain where I wanted, but unfortunately also
added my prefix to the compiled in defaults of GCC. Is there a
configuration option to do what I want? Something similar to "make
DESTDIR=/prefix" that is correctly used throughout the whole toolchain
build and install process automagically?
If not, I'd be thankful for pointers to what would need to be patched to
make this happen. I really want a cleanly buildable package of this