I have a binary file in linux. How can I check whether it has been compiled with \"-static\" or not?
You can also use the file command (and objdump could also be useful).
file
objdump