fix library bundling when host libraries reside in /lib/tls/ or similar
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 9 Sep 2012 22:37:32 +0000 (22:37 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 9 Sep 2012 22:37:32 +0000 (22:37 +0000)
SVN-Revision: 33353

scripts/bundle-libraries.sh

index 34cd08e78790f70b70ad84a8e64f962fd147d8ac..08b52b9906c7421a8dd8bf8856876a8636d4dedd 100755 (executable)
@@ -74,16 +74,12 @@ for BIN in "$@"; do
                                *) echo " * lib: ${token##*/}" ;;
                        esac
 
-                       dest="$DIR/bundled/lib/${token#*/lib*/}"
+                       dest="$DIR/bundled/lib/${token##*/}"
                        ddir="${dest%/*}"
 
                        [ -f "$token" -a ! -f "$dest" ] && {
                                _md "$ddir"
                                _cp "$token" "$dest"
-
-                               case "$token" in */tls/*.so*)
-                                       _cp "${token%/tls/*}/${token##*/}" "$DIR/bundled/lib/${token##*/}"
-                               ;; esac
                        }
                ;; esac
        done