[Swan-dev] Relative build paths

Andrew Cagney andrew.cagney at gmail.com
Wed Jan 28 23:00:27 EET 2015


On 28 January 2015 at 14:10, Antony Antony <antony at phenome.org> wrote:
> Relative path not a bad idea. If it is relative to 'src top' dir, the experience could be better. However, if it is relative to OBJ.linux.x86_64/programs/pluto it is a pain. The paths look like ../../../programs/pluto/plutomain.c.

> Would use use of 'src top' or whatever the autmake convention help?
> src_top=/home/cagney/libreswan-master

Only if the compiler were run from the top level directory.  This
strays into the area of non-recursive make.  While technically a good
thing, would be easier once the existing Makefiles are under some
control :-)

> For me the issue was when compiling inside KVM guest and I am editing the file on the host. Yes I know we have a convoluted directory structure betwen the host and guests, /source/ which I would love to get rid off.  Instead just mount /home/build then swan test could take directory name (/home/cagney/libreswan-master) as an argument.
>
> Oh, thanks for fixing Makefile.depend. It is no more in the source directory, only in OBJ.linux.x86_64/*

I'm not sure this is fully fixed yet.  But yes going.


More information about the Swan-dev mailing list