How to static link Linux software that uses ./configure? How to static link Linux software that uses ./configure? linux linux

How to static link Linux software that uses ./configure?


For people coming from google, I found that if you have libtool part of your build, you will need to:

  1. ./configure CFLAGS="-static" ....
  2. make LDFLAGS="-all-static"

You can see that -all-static with libtool --help --mode=link