5 # <- libb_dependency.so
7 # Expected: Undefined symbol in libb.so resolves to symbol in program,
8 # not to symbol in libb_dependency.so.
14 # create libb_dependency.so
15 cat > libb_dependency.c
<< EOI
20 compile_lib
-o libb_dependency.so libb_dependency.c
26 int b() { return a(); }
30 compile_lib
-o libb.so libb.c .
/libb_dependency.so
34 cat > program.c
<< EOI
48 compile_program
-o program program.c .
/libb.so
51 test_run_ok .
/program
1