J'ai besoin de relier statiquement toutes mes bibliothèques, y compris libstdC++, libc, pthread etc. Il y a une bibliothèque omniorb que je veux lier dynamiquement.Comment lier statiquement toutes les bibliothèques à l'exception de quelques-unes utilisant g ++?
Actuellement, j'ai dynamiquement lié toutes les bibliothèques. ldd affiche les informations suivantes
linux-vdso.so.1 => (0x00007fff251ff000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f291cc47000)
libomniDynamic4.so.1 (0x00007f291c842000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f291c536000)
libm.so.6 => /lib64/libm.so.6 (0x00007f291c2e0000)
libgomp.so.1 => /usr/lib64/libgomp.so.1 (0x00007f291c0d7000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f291bebf000)
libc.so.6 => /lib64/libc.so.6 (0x00007f291bb66000)
/lib64/ld-linux-x86-64.so.2 (0x00007f291ce63000)
librt.so.1 => /lib64/librt.so.1 (0x00007f291b95d000)
libomniORB4.so.1 (0x00007f291b6aa000)
libomnithread.so.3 (0x00007f291cf35000
J'ai besoin ldd pour montrer libomniDynamic4.so.1 comme la bibliothèque seulement liée dynamiquement.
Comment puis-je y parvenir?
Cette réponse est * complètement * fausse: -static désactive -dynamic et vice versa. Le dernier gagne. –