views:

65

answers:

3

Hi, how can I pass the option --enable-auto-import to ld from gcc?

+3  A: 
gcc ... -Wl,--enable-auto-import ...
Ignacio Vazquez-Abrams
+1  A: 

You use the -Xlinker option to pass options to the linker:

$ gcc -Xlinker--enable-auto-import blah...

should work.

unwind
+1  A: 
  -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.
zed_0xff