GCC freaking out when I use -static

498 views Asked by At

I'm trying to compile a simple botnet I made, with the command gcc -static -lpthread client.c but every time i do it, it throws these errors:

/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find -lc

It compiles fine whenever I compile without -static but I can't figure it out. You can find the code here. For the record this simple botnet is based off of bashlite, but has no actual DDoS functions, and cannot do any real harm. Any help would be appreciated.

1

There are 1 answers

0
LifeInKernelSpace On

I solved it when I did yum install glibc-static