Support LDFLAGS overriden

Fedora need to secure the linking by passing -Wl,-z,relro to the ldflags, however this will break the linking if we use LDFLAGS="-Wl,-z,relro" directly. In order to add these 3 flags into LDFLAGS, override variable is needed.