Do not use GNU linker flags on OSX because it does not support them.