static compilation - linux

Linux specific forum
shakenfr
New User
New User
Posts: 1
Joined: Wed Mar 09, 2022 2:40 pm

static compilation - linux

Post by shakenfr »

hello,

When I do a compilation of a .pb file under linux, the result is an executable that is dynamic :

ex:
file testpb
testpb: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=f7871ad33de4f859024b10b6c9f341bd9bc23988, for GNU/Linux 3.2.0, stripped


Is it possible to obtain a static file ? An independant executable that can run between more linux distribution with same arch.

best

bruno