Re: [Announce] Linux-tiny project revival

Rob Landley
2007-09-26T06:24:54Z

On Monday 24 September 2007 1:13:07 pm Adrian Bunk wrote:
> The simplest solution that comes into my mind would be to create links
> for the source file in the output dir before calling gcc and then give
> gcc the link as input file.

The way I've been building various packages out-of-tree (including the Linux
kernel) is:

cp -sR /path/to/actual/source/tree newdir
cd newdir
configure
make
install
cd ..
rm -rf newdir

The cp -sR creates a new tree of symlinks to the original source, and
everything I've tried so far happily builds in such a directory.

(Yes, this breaks on cygwin. Ask me if I care.)

Rob
--
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson.