Mercurial > hg > sv-dependency-builds
view src/libsndfile-1.0.27/src/make-static-lib-hidden-privates.sh @ 40:1df64224f5ac
Current libsndfile source
author | Chris Cannam |
---|---|
date | Tue, 18 Oct 2016 13:22:47 +0100 |
parents | |
children |
line wrap: on
line source
#!/bin/bash -e # This script takes a static library and removes all non-public symbols. # Ie, it makes a static lib whose symbols are far less likely to clash with # the symbols of another shared or static library. grep sf_ Symbols.gnu-binutils | sed -e "s/[ ;]//g" > Symbols.static ld -r --whole-archive .libs/libsndfile.a -o libsndfile_a.o objcopy --keep-global-symbols=Symbols.static libsndfile_a.o libsndfile.o rm -f libsndfile.a ar cru libsndfile.a libsndfile.o