Skip to content
Snippets Groups Projects
rstrip_and_set_rpath.sh 510 B
Newer Older
  • Learn to ignore specific revisions
  • #!/bin/sh -eux
    "$RSTRIP_SH" "$@"
    # TODO: find out why broadcom wl utility does not run after patching the RUNPATH. Maybe patchelf bug?
    find -D exec \
    	"$@" \
    	-type f \
    	-not -name 'ld-linux*.so*' \
    	-not -name '*.sh' \
    	-not -name wl.brcm \
    
    	-not -name eapd.brcm \
    	-not -name hostapd_cli.brcm \
    	-not -name wpa_cli.brcm \
    
    	'(' \
    		-name '*.so' \
    		-or \
    		-executable \
    	')' \
    	-execdir "$PATCHELF" --no-default-lib --add-rpath '/${LIB}/broadcom:/usr/${LIB}/broadcom' '{}' ';' || true