-#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
+#define LINK_SPEC "-m " LINK_EMULATION " %{shared:-shared} \
Rather than depend on ANSI-C string concatenation, why not do it right
and create %(link_emulation).
- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
+ %{!dynamic-linker:-dynamic-linker " LINK_LDPATH "}} \
Ditto. See how I already implemented this in gcc/config/freebsd-spec.h
and gcc/config/i386/freebsd.h with %(fbsd_dynamic_linker). We could
easily change this to just %(dynamic_linker) for constancy w/in GCC.