sys.mk: do not set -isysroot if DESTDIR is defined
commit31461468a89ec435fc241de28cd8d501a12ed06b
authorLauri Tirkkonen <lotheac@iki.fi>
Thu, 6 Jul 2017 15:13:39 +0000 (6 18:13 +0300)
committerLauri Tirkkonen <lotheac@iki.fi>
Thu, 6 Jul 2017 20:31:56 +0000 (6 23:31 +0300)
tree3ba8ea0c4cd218170b551e4459623eee9427faa8
parent8a8eb67ec3efb2cddfc1e322fade111fe7720842
sys.mk: do not set -isysroot if DESTDIR is defined

DESTDIR is generally not something that is supposed to be set during
'make all', but we've used it up until this point. There is a use case
for avoiding to use headers and libraries from the currently running
system, relying only on things in objdirs or DESTDIR, but our bmake/mk
system does not currently support that anyway: -isysroot did that only
for headers (not libs) and only because those headers ended up DESTDIR
before 'bmake all' was invoked. We need a better solution for
new-objects-and-headers only builds; in the meantime -isysroot is a
problem for inter-component dependencies, so we fall back to the running
system for now.
share/mk/sys.mk