tUpdate toolchain triplet - mkports - recipes for building multiple softwares with mk(1)
(HTM) git clone git://z3bra.org/mkports
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit cd0c8bf88b97da7a8a100b23dc2df87b4bb13060
(DIR) parent 6b4879cf05cf47c1e1309f8b5e6b9305f240f6c2
(HTM) Author: Willy <willyatmailoodotorg>
Date: Tue, 7 Jun 2016 23:11:06 +0200
Update toolchain triplet
Diffstat:
M config.mk | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
---
(DIR) diff --git a/config.mk b/config.mk
t@@ -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
t@@ -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 \