diff options
author | Cem Keylan <cem@ckyln.com> | 2020-12-30 23:11:09 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-12-30 23:11:09 +0300 |
commit | 59dc1125501d4d181113b6cb736254e1ee2d536b (patch) | |
tree | 6d9b86ed2fba5635f908cf4e99cc61c34d7b0670 /core | |
parent | 76f3800ed73a3fb8a292e717fcff0cdcd07b011d (diff) | |
download | repository-59dc1125501d4d181113b6cb736254e1ee2d536b.tar.gz |
sbase: fix cross build
Diffstat (limited to 'core')
-rwxr-xr-x | core/sbase/build | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/sbase/build b/core/sbase/build index 6781199d..c4f56dc7 100755 --- a/core/sbase/build +++ b/core/sbase/build @@ -1,7 +1,13 @@ #!/bin/sh -e -make LDFLAGS="$LDFLAGS -static" sbase-box -make PREFIX=/usr DESTDIR="$1" sbase-box-install +[ "$CPT_CROSS_TRIPLET" ] && CC=$CPT_CROSS_TRIPLET-cc \ + AR=$CPT_CROSS_TRIPLET-ar \ + RANLIB=$CPT_CROSS_TRIPLET-ranlib + +: ${CC:=cc} ${AR:=ar} ${RANLIB:=ranlib} + +make CC=$CC AR=$AR RANLIB=$RANLIB LDFLAGS="$LDFLAGS -static" sbase-box +make PREFIX=/usr DESTDIR="$1" sbase-box-install unlink "$1/usr/bin/tar" unlink "$1/usr/bin/sed" |