Forum > Unix

Statically add dependencies into binary


Fred vS:

How to add static libraries to use it as dependencies?

For example, a simple fpc test app using X11 has that dependencies:

--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---~> ldd testX11 (0x00007ffc275f0000) => /lib/x86_64-linux-gnu/ (0x00007fad6c866000) => /lib/x86_64-linux-gnu/ (0x00007fad6c600000) => /lib/x86_64-linux-gnu/ (0x00007fad6c861000) => /lib/x86_64-linux-gnu/ (0x00007fad6c4c2000) => /lib/x86_64-linux-gnu/ (0x00007fad6c85c000) => /lib/x86_64-linux-gnu/ (0x00007fad6c3d9000)        /lib64/ (0x00007fad6c88e000) => /lib/x86_64-linux-gnu/ (0x00007fad6c830000) => /lib/x86_64-linux-gnu/ (0x00007fad6c82a000) => /lib/x86_64-linux-gnu/ (0x00007fad6c822000) => /lib/x86_64-linux-gnu/ (0x00007fad6c80d000) => /lib/x86_64-linux-gnu/ (0x00007fad6c3cc000) 
What fpc parameter should be used to add those library static into the binary and to force to use it?

( Yes I know it is not regular, but for the fun and for exploration.   :-X)



Fred vS:
No, it is stupid.
Sorry for the noise.


[0] Message Index

Go to full version