Forum > Unix
Statically add dependencies into binary
(1/1)
Fred vS:
Hello.
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 linux-vdso.so.1 (0x00007ffc275f0000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fad6c866000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fad6c600000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fad6c861000) libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007fad6c4c2000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fad6c85c000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fad6c3d9000) /lib64/ld-linux-x86-64.so.2 (0x00007fad6c88e000) libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fad6c830000) libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007fad6c82a000) libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fad6c822000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007fad6c80d000) libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (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)
Thanks.
Fre;D
Fred vS:
No, it is stupid.
Sorry for the noise.
Navigation
[0] Message Index