add MKPREFIX flag to build system
This allows building OpenRC for a Gentoo Prefix installation.
This commit is contained in:
parent
1f01157354
commit
9e88d73aaa
3
README
3
README
@ -12,6 +12,7 @@ LIBNAME=lib64
|
|||||||
DESTDIR=/tmp/openrc-image
|
DESTDIR=/tmp/openrc-image
|
||||||
MKNET=oldnet
|
MKNET=oldnet
|
||||||
MKPAM=pam
|
MKPAM=pam
|
||||||
|
MKPREFIX=yes
|
||||||
MKPKGCONFIG=no
|
MKPKGCONFIG=no
|
||||||
MKSELINUX=yes
|
MKSELINUX=yes
|
||||||
MKSTATICLIBS=no
|
MKSTATICLIBS=no
|
||||||
@ -25,6 +26,8 @@ We don't support building a static OpenRC with PAM.
|
|||||||
You may need to use PROGLDFLAGS=-Wl,-Bstatic on glibc instead of just -static.
|
You may need to use PROGLDFLAGS=-Wl,-Bstatic on glibc instead of just -static.
|
||||||
If you debug memory under valgrind, add -DDEBUG_MEMORY to your CPPFLAGS
|
If you debug memory under valgrind, add -DDEBUG_MEMORY to your CPPFLAGS
|
||||||
so that all malloc memory should be freed at exit.
|
so that all malloc memory should be freed at exit.
|
||||||
|
If you are building OpenRC for a Gentoo Prefix installation, add
|
||||||
|
MKPREFIX=yes.
|
||||||
|
|
||||||
You can also brand OpenRC if you so wish like so
|
You can also brand OpenRC if you so wish like so
|
||||||
BRANDING=\"Gentoo/$(uname -s)\"
|
BRANDING=\"Gentoo/$(uname -s)\"
|
||||||
|
6
mk/os-prefix.mk
Normal file
6
mk/os-prefix.mk
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# Copyright (c) 2012 William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
# Released under the 2-clause BSD license.
|
||||||
|
|
||||||
|
ifeq (${MKPREFIX},yes}
|
||||||
|
CPPFLAGS+= -DPREFIX
|
||||||
|
endif
|
Loading…
Reference in New Issue
Block a user