test.sh
application/x-shellscript
Filename: test.sh
Type: application/x-shellscript
Part: 6
#!/usr/bin/env sh set -e gcc -g -shared b.c -Wl,-soname=libb.so -I. -o libb.so gcc -g -shared a.c -Wl,-soname=liba.so -I. -lb -L. -o liba.so gcc -g main.c -I. -o main -ldl LD_LIBRARY_PATH=. ./main