Skip to content

Commit

Permalink
make openssl static and hide symbols - https://gitlab.com/studio.link…
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Feb 23, 2019
1 parent 425197c commit 8a54d56
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build.sh
@@ -1,7 +1,10 @@
#!/bin/bash -e

gcc -g -Wall -shared -o studio-link.so -fPIC studio-link.c ../baresip/libbaresip.a \
../re/libre.a ../rem/librem.a ../opus/libopus.a -I../my_include -L ../openssl \
-lm -lpthread -lz -ldl -lresolv -lcrypt -lssl
gcc -Wall -shared -o studio-link.so -fPIC studio-link.c ../baresip/libbaresip.a \
../re/libre.a ../rem/librem.a ../opus/libopus.a \
../openssl/libssl.a ../openssl/libcrypto.a -I../my_include \
-lm -lpthread -lz -ldl -lresolv \
-fvisibility=hidden -fdata-sections -ffunction-sections \
-Wl,--gc-sections -Wl,-O1 -Wl,--as-needed -Wl,--strip-all

ldd studio-link.so

0 comments on commit 8a54d56

Please sign in to comment.