mkports

recipes for building multiple softwares with mk(1)
git clone git://z3bra.org/mkports
Log | Files | Refs

commit 708b1f437603055d3806743cd7ac957d2708337b
parent 4e2f8329fd1026289306f60e231fdb8dd2b42a47
Author: z3bra <willyatmailoodotorg>
Date:   Sun Apr 17 23:06:18 2016

Change defaults to fit a musl-based setup

Diffstat:
 config.mk | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

diff --git a/config.mk b/config.mk @@ -1,25 +1,24 @@ -TOOLCHAIN_TRIPLET = x86_64-linux-musl -CROSS = /opt/cross/${TOOLCHAIN_TRIPLET} -ROOT = ${CROSS}/${TOOLCHAIN_TRIPLET} -PATH = ${CROSS}/bin:${PATH} +#TOOLCHAIN_TRIPLET = x86_64-linux-musl +#CROSS = /opt/cross/${TOOLCHAIN_TRIPLET} +#PATH = ${CROSS}/bin:${PATH} +ROOT = /ns/distro/fs NPROC = 8 workdir = `{printf '/tmp/mkports/%s-%s' "$pkg" "$(id -u)"} -CC = ${TOOLCHAIN_TRIPLET}-gcc -static -CXX = ${TOOLCHAIN_TRIPLET}-g++ -static +CC = gcc -static +CXX = g++ -static LD = $CC -AR = ${TOOLCHAIN_TRIPLET}-ar +AR = ar HOSTCC = $CC -RANLIB = ${TOOLCHAIN_TRIPLET}-ranlib -STRIP = ${TOOLCHAIN_TRIPLET}-strip -PKG_CONFIG = ${TOOLCHAIN_TRIPLET}-pkg-config +RANLIB = ranlib +STRIP = strip +PKG_CONFIG = pkg-config -CPPFLAGS = +CPPFLAGS = -I${ROOT}/include CFLAGS = ${CPPFLAGS} -LDFLAGS = +LDFLAGS = -L${ROOT}/lib MAKEFLAGS = -j${NPROC} PREFIX= prefix= MANDIR=/man mandir=/man MANPREFIX=/man CONFIGURE = --prefix= \ - --host=${TOOLCHAIN_TRIPLET} \ --mandir=/man \ --libdir=/lib \ --includedir=/include \