aboutsummaryrefslogtreecommitdiff
path: root/core/sbase/build
blob: c4f56dc7251d5dd0d92cc24f4b4f9ec0dba2bed8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh -e

[ "$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"