Created
October 10, 2019 02:03
-
-
Save Hconk/a3632f79f2c6db6a9d4c9a26856236c9 to your computer and use it in GitHub Desktop.
linux 下拷贝程序所有依赖的so
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
deplist=$( ldd $1 | awk '{if (match($3,"/")){ print $3}}' ) | |
cp $deplist $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment