mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
FS-4657 --resolve update libsndfile to its latest master
This commit is contained in:
14
libs/libsndfile/src/make-static-lib-hidden-privates.sh
Normal file
14
libs/libsndfile/src/make-static-lib-hidden-privates.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/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
|
Reference in New Issue
Block a user