mkports

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

commit cd0c8bf88b97da7a8a100b23dc2df87b4bb13060
parent 6b4879cf05cf47c1e1309f8b5e6b9305f240f6c2
Author: Willy <willyatmailoodotorg>
Date:   Tue Jun  7 23:11:06 +0200

Update toolchain triplet

Diffstat:
config.mk | 20++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/config.mk b/config.mk @@ -1,10 +1,8 @@ -#TOOLCHAIN_TRIPLET = x86_64-linux-musl -#CROSS = /opt/cross/${TOOLCHAIN_TRIPLET} -#PATH = ${CROSS}/bin:${PATH} -ROOT = /ns/distro/fs -REPO = /ns/distro/pm/repo -WORK = `{printf '/tmp/mkports/%s-%s' "$pkg" "$(id -u)"} -NPROC = 8 +TRIPLET = x86_64-pc-linux-musl +ROOT = /ns/distro/fs +REPO = /ns/distro/pm/repo +WORK = `{printf '/tmp/mkports/%s-%s' "$pkg" "$(id -u)"} +NPROC = 8 CC = gcc -static CXX = g++ -static @@ -13,13 +11,19 @@ AR = ar HOSTCC = $CC RANLIB = ranlib STRIP = strip -PKG_CONFIG = pkg-config + +CHOST = x86_64-pc-linux-musl +CBUILD = x86_64-pc-linux-musl +CTARGET = $TRIPLET CPPFLAGS = -I${ROOT}/include CFLAGS = ${CPPFLAGS} LDFLAGS = -L${ROOT}/lib MAKEFLAGS = -j${NPROC} PREFIX= prefix= MANDIR=/man mandir=/man MANPREFIX=/man CONFIGURE = --prefix= \ + --host=$CHOST \ + --build=$CBUILD \ + --target=$TRIPLET \ --mandir=/man \ --libdir=/lib \ --includedir=/include \