pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/platform Add /usr/local for include and libdir on C...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f5c1cd3b3f8e
branches:  trunk
changeset: 371766:f5c1cd3b3f8e
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Tue Nov 21 19:16:47 2017 +0000

description:
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:

 mk/platform/Linux.mk |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r ef47dc095d21 -r f5c1cd3b3f8e mk/platform/Linux.mk
--- a/mk/platform/Linux.mk      Tue Nov 21 18:46:24 2017 +0000
+++ b/mk/platform/Linux.mk      Tue Nov 21 19:16:47 2017 +0000
@@ -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 @@
 .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



Home | Main Index | Thread Index | Old Index