Use ld for MIPS builds

lld produces larger binaries that are incompatible with UPX.
This commit is contained in:
klzgrad 2019-12-02 16:09:09 +08:00
parent 9ecb32d4ae
commit 331bae81ca
2 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,7 @@ matrix:
- name: "openwrt-mipsel_24kc" - name: "openwrt-mipsel_24kc"
os: linux os: linux
dist: bionic dist: bionic
env: EXTRA_FLAGS='target_cpu="mipsel" mips_arch_variant="r2" mips_float_abi="soft" mips_tune="24kc" use_allocator="none" use_allocator_shim=false is_openwrt=true ldso_path="/lib/ld-musl-mipsel-sf.so.1"' OPENWRT_FLAGS='arch=mipsel_24kc release=19.07.0-rc1 gcc_ver=7.4.0 target=ramips subtarget=rt305x' env: EXTRA_FLAGS='target_cpu="mipsel" mips_arch_variant="r2" mips_float_abi="soft" mips_tune="24kc" use_allocator="none" use_allocator_shim=false is_openwrt=true ldso_path="/lib/ld-musl-mipsel-sf.so.1" use_lld=false' OPENWRT_FLAGS='arch=mipsel_24kc release=19.07.0-rc1 gcc_ver=7.4.0 target=ramips subtarget=rt305x'
- name: "osx" - name: "osx"
os: osx os: osx
osx_image: xcode10.2 osx_image: xcode10.2

View File

@ -39,6 +39,9 @@ echo '
./lib/libresolv.a ./lib/libresolv.a
./lib/librt.a ./lib/librt.a
./usr ./usr
*ld.bin
' >include.txt ' >include.txt
tar cf - -C $full_root . | tar xf - -C $sysroot --wildcards --wildcards-match-slash -T include.txt tar cf - -C $full_root . | tar xf - -C $sysroot --wildcards --wildcards-match-slash -T include.txt
rm include.txt rm include.txt
cd $sysroot/*-openwrt-linux-musl/bin
mv .ld.bin ld