>My next plan is to ./configure && make without a PREFIX and copy the
>results manually.
You shouldn't have to: DESTDIR should do what you need.
The way it works is:
* --prefix is the installation prefix that binaries are supposed to use,
and see, *at run-time*. Typically --prefix=/usr, --prefix=/usr/local...
* DESTDIR is a make variable you can use when installing to a staging
directory, e.g. when making a distribution. Installation will happen
to ${DESTDIR}${prefix}. DESTDIR will *not* be taken into account at
run-time. So here, "make install DESTDIR=/mnt/lfs".
* --with-include, --with-lib, --with-dynlib, --with-sysdeps etc. are
directories *as seen by the build system*, so they should include
DESTDIR.
./configure --prefix=/usr --with-include=/mnt/lfs/usr/include ...
It's not immediately intuitive, but it is the only way that all the
possible use cases I've thought of are covered.
And it's not out-of-tree builds. ;) Out-of-tree builds are when the
build
artifacts are created outside of the source tree, which is not the case
with the skaware build system; this is only needed when you're doing
several builds at the same time, or when the source tree is mounted on a
read-only filesystem, etc.
So far I have never been asked for out-of-tree support, because the
packages are small enough that temporary duplication of the source tree
in the build area is always manageable.
--
Laurent
Received on Mon Nov 09 2026 - 06:48:55 CET