mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-06-21 04:44:17 +00:00
added libraries: opus flac libsndfile updated: libvorbis libogg openal - Everything works as expected for now. Bare in mind libsndfile needed the check for whether or not it could find the xiph libraries removed in order for this to work.
14 lines
472 B
Bash
14 lines
472 B
Bash
#!/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
|