aboutsummaryrefslogtreecommitdiff
path: root/core/otools/build
blob: 2e76b3e430b907f7522d2f511bab7c872d52186b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

FTS=0; cpt l musl-fts && FTS=1

# Remove symbolic link substitution on pax
sed -i 's|IS_LINK|IS_HARDLINK|' bin/pax/pat_rep.c

mk() {
    make \
        PREFIX=/usr \
        TLSLIB="$(pkgconf --static --libs libtls)" \
        LDFLAGS="$LDFLAGS -static" \
        FTS="$FTS" \
        "$@"
}

mk
mk DESTDIR="$1" install