<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 11 October 2017 at 15:03, Paul Wouters <span dir="ltr"><<a href="mailto:paul@nohats.ca" target="_blank">paul@nohats.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Wed, 11 Oct 2017, Andrew Cagney wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I'm considering merging much of mk/defaults/<a href="http://linux.mk" rel="noreferrer" target="_blank">linux.mk</a> into mk/<a href="http://config.mk" rel="noreferrer" target="_blank">config.mk</a> so that <a href="http://config.mk" rel="noreferrer" target="_blank">config.mk</a> just defaults everything to the typical<br>
linux value.<br>
This would mean removing the esoteric checks for other OS variants - if an OS needs those overrides then they can be added to<br>
mk/defaults/$(OS).mk (when was libreswan built on anything other than linux?)<br>
<br>
(oh, and delete mk/defaults/<a href="http://debian.mk" rel="noreferrer" target="_blank">debian.mk</a>)<br>
</blockquote>
<br></span>
One requirement would still be for me that people can look at one file<br>
and easilly configure their OS. So I would still like the top of the<br>
file to allow for uncommenting an include for another OS.<br>
<br></blockquote><div><br></div><div>Right, mk/<a href="http://config.mk">config.mk</a> is already somewhat like that and in that sense wouldn't change. Near the top it pulls on per-OS defaults from mk/defaults/$(BUILDENV).mk and then it proceeds to fill in defaults.  Mostly, sort of, except ... for instance it contains:</div><div><br></div><div># Build support for the Linux Audit system<br>ifeq ($(OSDEP),linux)<br>USE_LINUX_AUDIT?=false<br>endif<br></div><div><br></div><div>which should be just:</div><div><div><br></div># Build support for the Linux Audit system</div><div>USE_LINUX_AUDIT?=false</div><div><br></div></div><div>(mk/defaults/<a href="http://linux.mk">linux.mk</a> has magic to enable it on fedora hosts) Its those strange quirks I'd be getting rid of.</div><div class="gmail_quote"><div><br></div><div>(as an aside the best way I've found for integrating libreswan into esoteric build systems was to specify the relevant USE_* flags directly on the make line)<br></div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I dont much care on how that works under the hood.<span class="gmail-HOEnZb"><font color="#888888"></font></span><br></blockquote></div></div></div>