[Bug 17268] New: configure link tests don't respect the -L from LDFLAGS