Things went back to being statically linked again once I added an explicit -static flag to the vanilla way.