Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
how to static compile kdig #42
@lancethepants I tried static compile kdig 2days but failed..so I need you help ~
This one is definitely tricky. This also shows why I hate libtool, because it strips a lot of the necessary stuff you need to pass to get this to compile.
So all I did was compile libedit and libunistring, because tomatoware already has gmp, nettle, and gnutls. Maybe you recompiled these for different or additional options.
Then I configured with knot-dns, using part of your configure.
Then start compilation with
V=99 so we can see all what stupid libtool is doing. -zmuldefs because we get mutliple definition errors. Fortunately kdig is the first things to fail, at least for me. It will fail on command similar to
Copy this command. Delete everything before gcc. We will manually run the command. We'll also surround external libraries with
@lancethepants Thanks a lot for your help, i can build the static version of
So i remember how i had to recompile GNUTLS at the first time. Tomatoware include gnutls compile with
then static compile
Yes, this is not very portable and real static because the ca-files. These files not exist in normal tomato firmware but new
It looks like kdig has a runtime option to provide your own certificate.
See if that works for you. Then you don't have to worry about re-compiling any of the crypto libraries, and just use tls-ca= option in kdig.