mkports

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

commit 8f11f39b75f6e253feadaabe4e13f1f4e9518699
parent b6c4fb87c9ad7950b41fa1b3c65018265cb532f6
Author: z3bra <contactatz3bradotorg>
Date:   Thu Jan 26 18:30:20 +0000

Update config.mk with various parameters

Diffstat:
config.mk | 31++++++++++++++++---------------
default.mk | 3+--
2 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/config.mk b/config.mk @@ -1,33 +1,34 @@ -TRIPLET = x86_64-pc-linux-musl -ROOT = /ns/distro/fs -REPO = /ns/distro/pm/repo +TRIPLET = x86_64-linux-musl +ROOT = /tmp/mkports/rootfs +REPO = /var/repo WORK = `{printf '/tmp/mkports/%s-%s' "$pkg" "$(id -u)"} NPROC = 8 -CC = gcc -static -CXX = g++ -static -LD = $CC -AR = ar +#TOOLCHAIN = x86_64-linux-musl- +TOOLCHAIN = +CC = ${TOOLCHAIN}gcc -static +CXX = ${TOOLCHAIN}g++ -static +LD = $CC -Bstatic HOSTCC = $CC -RANLIB = ranlib -STRIP = strip +AR = ${TOOLCHAIN}ar +RANLIB = ${TOOLCHAIN}ranlib +STRIP = ${TOOLCHAIN}strip -CHOST = x86_64-pc-linux-musl -CBUILD = x86_64-pc-linux-musl +CHOST = $TRIPLET +CBUILD = $TRIPLET CTARGET = $TRIPLET CPPFLAGS = -I${ROOT}/include CFLAGS = ${CPPFLAGS} -LDFLAGS = -L${ROOT}/lib +LDFLAGS = -L${ROOT}/lib -static MAKEFLAGS = -j${NPROC} PREFIX= prefix= MANDIR=/man mandir=/man MANPREFIX=/man CONFIGURE = --prefix= \ - --host=$CHOST \ - --build=$CBUILD \ + --build=$TRIPLET \ --target=$TRIPLET \ --mandir=/man \ --libdir=/lib \ --includedir=/include \ --enable-static \ - --disable-shared \ --disable-nls \ + --disable-shared \ --disable-multilib diff --git a/default.mk b/default.mk @@ -90,4 +90,4 @@ clean:V: # remove the pack distclean:V: clean - rm -f $tarball- \ No newline at end of file + rm -f $tarball