All of these are disabled by default in GNU ld, but enabled by default in lld.
Disable dynamicbase by default since it potentially could cause compatibility issues, but just ignore the others since the lld default should be fine for most concievable cases.
nit: add a blank line so that this code block doesn't look like a series of if ~ else if ~ else if ~ else. Or maybe you could use :?