I want to compile statically pdf2svg
so I will be able to use newest version in stable Debian. The ./configure
doesn't give --enable-static
option so I added manually in Makefile
-static
option for linker.
Unfortunately the result wasn't quite as I suspected. The linking gave me enormous amounts of undefined reference
errors. After some googling I figured out that the problem is caused by wrong order of -lsome_lib
. Gcc linker tries to statically link in each library once, when it first sees it - info and Stackoverflow question: Why does the order in which libraries are linked sometimes cause errors in GCC?.
Is there a possibility of making linker make multiple passes through the list of libraries?