aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2016-06-13 17:43:36 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-06-13 17:43:36 -0500
commit5af5d12f3e56f9f2ff232d124d27c856fd66f551 (patch)
tree170bb1c68b7b4311d1695b19ca0ceda42d6b6daa
parentb2c92b88cc6ce6d81444667efbc6d44542db1788 (diff)
Fix PATH for Prefix.
1. remove default /bin:/sbin:/usr/bin:/usr/sbin 2. PKG_PREFIX should be defaulted to $(PREFIX)/usr 3. LOCAL_PREFIX should be defaulted to $(PREFIX)/usr/local X-Gentoo-Bug:583634 X-Gentoo-Bug-URL:https://bugs.gentoo.org/show_bug.cgi?id=583634
-rw-r--r--mk/os-prefix.mk2
-rw-r--r--mk/os.mk2
-rw-r--r--mk/sys.mk2
3 files changed, 4 insertions, 2 deletions
diff --git a/mk/os-prefix.mk b/mk/os-prefix.mk
index c546a862..af08c99e 100644
--- a/mk/os-prefix.mk
+++ b/mk/os-prefix.mk
@@ -3,4 +3,6 @@
ifeq (${MKPREFIX},yes)
CPPFLAGS+= -DPREFIX
+PKG_PREFIX?= $(PREFIX)/usr
+SED_EXTRA= -e '/_PATH=.*usr.bin/d'
endif
diff --git a/mk/os.mk b/mk/os.mk
index 20b43826..bac0388c 100644
--- a/mk/os.mk
+++ b/mk/os.mk
@@ -13,7 +13,7 @@
_OS_SH= uname -s | tr '/' '-'
_OS:= $(shell ${_OS_SH})
OS?= ${_OS}
-include ${MK}/os-${OS}.mk
include ${MK}/os-prefix.mk
+include ${MK}/os-${OS}.mk
RC_LIB= /$(LIBNAME)/rc
diff --git a/mk/sys.mk b/mk/sys.mk
index 76f0b787..948ec1d4 100644
--- a/mk/sys.mk
+++ b/mk/sys.mk
@@ -26,7 +26,7 @@ ifeq (${MKPREFIX},yes)
UPREFIX= ${PREFIX}/usr
endif
endif
-LOCAL_PREFIX= /usr/local
+LOCAL_PREFIX= $(UPREFIX)/local
PICFLAG?= -fPIC