Created
January 5, 2012 16:51
-
-
Save kylemcdonald/1566087 to your computer and use it in GitHub Desktop.
Combine all static libraries in the current directory into a single static library.
This file contains 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 | |
read -p "Enter the name for the combined library: " name | |
for f in *.a | |
do | |
/usr/bin/ar x $f | |
done | |
rm *SYMDEF* | |
/usr/bin/ar rcs $name *.o | |
rm *.o |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment