how can I pass the option --enable-auto-import to ld from gcc?
--enable-auto-import
-Xlinker option Pass option as an option to the linker. You can use this to supply system-specific linker options which GCC does not know how to recognize.