Pass $(sysdep-LDFLAGS) when using --print-file-name.