pass LDFLAGS to linker, fix of 533276