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
This commit is contained in:
parent
b2c92b88cc
commit
5af5d12f3e
@ -3,4 +3,6 @@
|
|||||||
|
|
||||||
ifeq (${MKPREFIX},yes)
|
ifeq (${MKPREFIX},yes)
|
||||||
CPPFLAGS+= -DPREFIX
|
CPPFLAGS+= -DPREFIX
|
||||||
|
PKG_PREFIX?= $(PREFIX)/usr
|
||||||
|
SED_EXTRA= -e '/_PATH=.*usr.bin/d'
|
||||||
endif
|
endif
|
||||||
|
2
mk/os.mk
2
mk/os.mk
@ -13,7 +13,7 @@
|
|||||||
_OS_SH= uname -s | tr '/' '-'
|
_OS_SH= uname -s | tr '/' '-'
|
||||||
_OS:= $(shell ${_OS_SH})
|
_OS:= $(shell ${_OS_SH})
|
||||||
OS?= ${_OS}
|
OS?= ${_OS}
|
||||||
include ${MK}/os-${OS}.mk
|
|
||||||
include ${MK}/os-prefix.mk
|
include ${MK}/os-prefix.mk
|
||||||
|
include ${MK}/os-${OS}.mk
|
||||||
|
|
||||||
RC_LIB= /$(LIBNAME)/rc
|
RC_LIB= /$(LIBNAME)/rc
|
||||||
|
Loading…
Reference in New Issue
Block a user