[PATCH] scripts: bundle-libraries.sh: fix broken SDK compiler

Jo-Philipp Wich jo at mein.io
Sun Nov 1 11:51:35 EST 2020


Hi Petr,

instead of meddling with the file permissions (which might cause
unwanted side effects for .so's that *are* supposed to be executable)
I'd suggest to simply skip *.so files by name.

Something along the lines of:

case "$BIN" in
  *.so|*.so.[0-9]*) : ;;
  *)
    [ -n "$LDD" ] && [ -x "$BIN" ] && file "$BIN" | grep -sqE
"ELF.*(executable|interpreter)" && {
      ...
    }
  ;;
esac

~ Jo



More information about the openwrt-devel mailing list