Passing linker-arguments when only compiling will cause warnings with Clang. This change fixes those.
Specifically this addresses warnings like these:
clang: warning: -Wl,-z,relro: 'linker' input unused when '-c' is present
clang: warning: -Wl,-z,now: 'linker' input unused when '-c' is present
clang: warning: argument unused during compilation: '-pie'