diff options
author | bsiegert <bsiegert@pkgsrc.org> | 2017-11-21 19:16:47 +0000 |
---|---|---|
committer | bsiegert <bsiegert@pkgsrc.org> | 2017-11-21 19:16:47 +0000 |
commit | 9599af7dc3bdd487fcf00805d548d0e380194c54 (patch) | |
tree | c94b5dbb4aa8cfccf55d6c7ddd02f111fe4c1b4b /mk | |
parent | d766ec8d355dd466e9298c955ba377447ae5fc62 (diff) | |
download | pkgsrc-9599af7dc3bdd487fcf00805d548d0e380194c54.tar.gz |
Add /usr/local for include and libdir on ChromeOS.
Third-party (i.e. non-pkgsrc) C toolchains (I am using chromebrew)
install to /usr/local, as that is where you can have write access.
With this, a bootstrap on ChromeOS finishes successfully.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/platform/Linux.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/platform/Linux.mk b/mk/platform/Linux.mk index ff639bf31f4..dc496560235 100644 --- a/mk/platform/Linux.mk +++ b/mk/platform/Linux.mk @@ -1,4 +1,4 @@ -# $NetBSD: Linux.mk,v 1.77 2017/10/03 13:18:00 jperkin Exp $ +# $NetBSD: Linux.mk,v 1.78 2017/11/21 19:16:47 bsiegert Exp $ # # Variable definitions for the Linux operating system. @@ -83,6 +83,11 @@ _OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX} .endif _OPSYS_INCLUDE_DIRS?= /usr/include +.if !empty(OS_VARIANT:Mchromeos) +_OPSYS_LIB_DIRS+= /usr/local/lib +_OPSYS_INCLUDE_DIRS+= /usr/local/include +.endif + # These are libc builtins _OPSYS_PREFER.getopt?= native _OPSYS_PREFER.gettext?= native |