summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2017-11-21 19:16:47 +0000
committerbsiegert <bsiegert@pkgsrc.org>2017-11-21 19:16:47 +0000
commit9599af7dc3bdd487fcf00805d548d0e380194c54 (patch)
treec94b5dbb4aa8cfccf55d6c7ddd02f111fe4c1b4b
parentd766ec8d355dd466e9298c955ba377447ae5fc62 (diff)
downloadpkgsrc-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.
-rw-r--r--mk/platform/Linux.mk7
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