From a77989fcfe64f6dd299e5bc421682b9174efcf40 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Mon, 2 Dec 2019 18:30:19 +0800 Subject: [PATCH] Fix build --- .travis.yml | 2 +- src/get-openwrt.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 91b5eec56e..3f2876efd6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ matrix: - name: "openwrt-mipsel_24kc" os: linux 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" use_lld=false' 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 use_gold=false' OPENWRT_FLAGS='arch=mipsel_24kc release=19.07.0-rc1 gcc_ver=7.4.0 target=ramips subtarget=rt305x' - name: "osx" os: osx osx_image: xcode10.2 diff --git a/src/get-openwrt.sh b/src/get-openwrt.sh index 3c4c0b13f2..0ce461c018 100755 --- a/src/get-openwrt.sh +++ b/src/get-openwrt.sh @@ -39,9 +39,9 @@ echo ' ./lib/libresolv.a ./lib/librt.a ./usr -*ld.bin +*.ld.bin ' >include.txt -tar cf - -C $full_root . | tar xf - -C $sysroot --wildcards --wildcards-match-slash -T include.txt +tar cf - -C $full_root --hard-dereference . | tar xf - -C $sysroot --wildcards --wildcards-match-slash -T include.txt rm include.txt cd $sysroot/*-openwrt-linux-musl/bin mv .ld.bin ld