Closed egg1234 closed 9 months ago
I haven't tested it, but it should be something like:
sudo apt update
sudo apt install build-essential
gcc -static WakeOnLAN.c -o WakeOnLAN
Your command worked. The following output shows that "WakeOnLAN" is statically linked.
root@u20gcc:/WakeOnLAN# file WakeOnLAN WakeOnLAN: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=85049e0df7a850c5053ebbf3425eb8a68fcc3e78, for GNU/Linux 3.2.0, not stripped
Thanks for your help!
Thank you very much!