ldd outputs statically linked on a shared library
问题 I am trying to create a shared library libddv3djava.so I compile sources for libddv3djava.so like so: ~/Programming/intellijprojects/ddv3dbindingstest/src $ g++ -c -Wall -Werror -I. -I /usr/lib/jvm/java-8-oracle/include/ -I /usr/lib/jvm/java-8-oracle/include/linux/ -fpic com_ddv3d_Ddv3dBinding.cpp Creating libddv3djava.so: ~/Programming/intellijprojects/ddv3dbindingstest/src $ g++ -shared -o libddv3djava.so com_ddv3d_Ddv3dBinding.o When I do ldd on libddv3djava.so: ~/Programming