https://sourceware.org/bugzilla/show_bug.cgi?id=28545
--- Comment #12 from John <bugs.sourceware at johnthomson dot fastmail.com.au> --- Thank you Nick, I will take this up again with OpenWrt Sorry I had not done an out-of-openwrt cross compile Just to make sure, I am seeing this error when I have both configure args: --enable-shared --prefix=/usr The error then shows during make install I do not yet have a non-openwrt cross compile toolchain setup. I will try to get this done. In my recreate using the openwrt toolchain, but not build scripts, I (still) see this error, without those unwanted OpenWrt LDFLAGS: will attach log. curl -O https://downloads.openwrt.org/snapshots/targets/ipq40xx/mikrotik/openwrt-sdk-ipq40xx-mikrotik_gcc-11.2.0_musl_eabi.Linux-x86_64.tar.xz tar -xf openwrt-sdk-ipq40xx-mikrotik_gcc-11.2.0_musl_eabi.Linux-x86_64.tar.xz cd openwrt-sdk-ipq40xx-mikrotik_gcc-11.2.0_musl_eabi.Linux-x86_64 PATH="$PATH:$(realpath staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-11.2.0_musl_eabi/bin)" export PATH STAGING_DIR="$(realpath staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-11.2.0_musl_eabi)" export STAGING_DIR cd dl curl -LO 'http://mirror.downloadvn.com/gnu/binutils/binutils-2.37.tar.xz' cd ../ mkdir temp cd temp curl -L -o libctf-link-against-libibierty-first.patch 'https://sourceware.org/git?p=binutils-gdb.git;a=patch;h=7d53105d6ed984aec255fa0eacd0405f3c1bb874' tar -xf ../dl/binutils-2.37.tar.xz cd binutils-2.37 patch -Np1 -i ../libctf-link-against-libibierty-first.patch mkdir tmp ./configure --target=arm-openwrt-linux --host=arm-openwrt-linux --build=x86_64-pc-linux-gnu --enable-shared --prefix=/usr 2>&1 | tee log make 2>&1 | tee -a log DESTDIR=$(realpath tmp) make install 2>&1 | tee -a log -- You are receiving this mail because: You are on the CC list for the bug.