That’s not the problem with this code. It’s just really ancient. But it is kind of nice just having a plain-ole makefile for a change. I’m trying to update my big program to use a more recent build of pdfium. It uses Google’s crazy build systems. It's just insane.
But this project is simple. All I had to do is remove the “-static” from the Makefile and it compiles with no problem. I don’t know if it works or not because I have no idea what it does.
But build systems these days have really gone off the deep end. Here is what I have to do in order to update the pdfium project.
1) Install the one specific build that works, with custom 3rd party build scripts, on a Linux computer.
2) Keep trying to build it, installing necessary dependencies when it fails. Note that I can’t just rebuild after installing a dependency. I have to blow away the project and start a new build from scratch. It’s not fast either.
3) Zip up the result and copy it to my Mac. I have to prune it a bit to remove all of Google’s “depot tools”. Otherwise the zip file is 3.4 GB.
4) Do a recursive diff to look for changes to the source code. Most of the changes are to the testing suite and “fuzzers”, which I don’t need.
5) I’ve already built a custom Xcode project to do the actual build. I just had to update some #defines that have changed, double-check my hacks, remove files that no longer build and apparently were part of the XFA module that I never needed anyway.
This is state of the art stuff!