mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
generate-emscripten-symbols.sh: allows the lib path to be overridden
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
set -e
|
||||
|
||||
LIBSODIUM=${LIBSODIUM:-/tmp/sodium/lib/libsodium.27.dylib}
|
||||
|
||||
symbols() {
|
||||
{
|
||||
SUMO="$1"
|
||||
@@ -17,7 +19,7 @@ symbols() {
|
||||
fi
|
||||
done <emscripten-symbols.def
|
||||
|
||||
/usr/bin/nm /usr/local/lib/libsodium.27.dylib |
|
||||
/usr/bin/nm "$LIBSODIUM" |
|
||||
fgrep ' T _' |
|
||||
cut -d' ' -f3 | {
|
||||
while read symbol; do
|
||||
|
||||
Reference in New Issue
Block a user