diff options
| author | Cem Keylan <cem@ckyln.com> | 2021-07-04 03:17:28 +0300 | 
|---|---|---|
| committer | Cem Keylan <cem@ckyln.com> | 2021-07-04 03:17:28 +0300 | 
| commit | d3a05618908e42c5d9799fd17cdee84a4d364d70 (patch) | |
| tree | f7728b75c90ec34207ec9c0fea996ea8c8ca5696 /core/otools/build | |
| parent | b1d9ff82d5369cb5c3331433dd947f9744ac7bd1 (diff) | |
| download | repository-d3a05618908e42c5d9799fd17cdee84a4d364d70.tar.gz | |
otools: patch pax
Diffstat (limited to 'core/otools/build')
| -rwxr-xr-x | core/otools/build | 17 | 
1 files changed, 15 insertions, 2 deletions
| diff --git a/core/otools/build b/core/otools/build index 45da9bf9..2e76b3e4 100755 --- a/core/otools/build +++ b/core/otools/build @@ -1,5 +1,18 @@  #!/bin/sh -e  FTS=0; cpt l musl-fts && FTS=1 -make LDFLAGS=-static FTS="$FTS" -make PREFIX=/usr DESTDIR="$1" install + +# 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 | 
