pthbs

Packaging Through Hashed Build Scripts
git clone https://ccx.te2000.cz/git/pthbs
Log | Files | Refs | Submodules | README

musl-cross-make:bootstrap (2201B)


      1 {% extends "genlinks" %}
      2 {%- block script %}
      3 #@pragma:nosandbox
      4 #@pragma:nopath
      5 #+{{pkg_install_name("musl-cross-make:bootstrap-0")}}
      6 #@git:fe915821b652a7fa37b34a596f47d8e20bc72338:musl-cross-make
      7 #@sha256:ab66fc2d1c3ec0359b8e08843c9f33b63e8707efdff5e4cc5c200eae24722cbf:musl-cross-make/sources/binutils-2.33.1.tar.xz
      8 #@sha256:75d5d255a2a273b6e651f82eecfabf6cbcd8eaeae70e86b417384c8f4a58d8d3:musl-cross-make/sources/config.sub
      9 #@sha256:d08edc536b54c372a1010ff6619dd274c0f1603aa49212ba20f7aa2cda36fa8b:musl-cross-make/sources/gcc-11.2.0.tar.xz
     10 #@sha256:5275bb04f4863a13516b2f39392ac5e272f5e1bb8057b18aec1c9b79d73d8fb2:musl-cross-make/sources/gmp-6.1.2.tar.bz2
     11 #@sha256:995bc76ccf0c40d752b5ea67c022232a17eef6c9ec80ea74ea742e3c19992813:musl-cross-make/sources/linux-headers-4.19.88-1.tar.xz
     12 #@sha256:6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e:musl-cross-make/sources/mpc-1.1.0.tar.gz
     13 #@sha256:c05e3f02d09e0e9019384cdd58e0f19c64e6db1fd6f5ecf77b4b1c61ca253acc:musl-cross-make/sources/mpfr-4.0.2.tar.bz2
     14 #@sha256:7d5b0b6062521e4627e099e4c9dc8248d32a30285e959b7eecaa780cf8cfd4a4:musl-cross-make/sources/musl-1.2.3.tar.gz
     15 
     16 : ${JOBS:=1}
     17 bootstrap={{versions}}/musl-cross-make.{{pkg_sha256("musl-cross-make:bootstrap-0")}}
     18 printf '%s\n' >musl-cross-make/config.mak \
     19 	"OUTPUT=${pthbs_destdir%/}{{versions}}/$pthbs_package" \
     20 	'GCC_VER=11.2.0' \
     21 	"TARGET={{triplet}}" \
     22 	'st=-static --static' \
     23 	'fl=-g0 -O2' \
     24 	"bbin=$bootstrap/bin" \
     25 	'COMMON_CONFIG += CFLAGS="${fl}" CXXFLAGS="${fl}" FFLAGS="${fl}" LDFLAGS="-s ${st}"' \
     26 	'COMMON_CONFIG += CC="${bbin}/{{triplet}}-gcc ${st}" CXX="${bbin}/{{triplet}}-g++ ${st}"'
     27 touch musl-cross-make/sources/*
     28 export PATH="$bootstrap/bin:$PATH"
     29 {{make}} -C musl-cross-make
     30 make -C musl-cross-make install
     31 "$bootstrap/bin/{{triplet}}-gcc" --version
     32 {{make}} -C musl-cross-make
     33 make -C musl-cross-make install
     34 "${pthbs_destdir%/}"'{{versions}}'"/$pthbs_package/bin/"'{{triplet}}-gcc' --version
     35 {% endblock %}
     36 {% block genlinks_begin %}
     37 	x["./bin/{{triplet}}-g++"]=1
     38 	x["./bin/{{triplet}}-gcc"]=1
     39 {% endblock %}
     40 {% block rules %}
     41 $2 == "bin" && $3 ~ /^{{triplet}}-/ { target=$3; sub("{{triplet}}-", "", target); link("./command/" target) }
     42 {% endblock -%}