gcc-toolfile: select correct linker (ld) flags based on architecture

Darwin/OSX only needs '-r' for incremental linking. '-m' is deprecated.
'-z muldefs' only needs to be applied on GNU linkers, not for Darwin/OSX.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>