如何将选项--enable-auto-import
从gcc传递给ld?
答案 0 :(得分:8)
gcc ... -Wl,--enable-auto-import ...
答案 1 :(得分:2)
-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.
答案 2 :(得分:1)
答案 3 :(得分:1)
警告:很少提及,但如果你有一个需要值的链接器选项,比如说......
-current_version 1
...您需要执行以下操作:
-Wl,-current_version,1
......或......
-Xlinker -current_version -Xlinker 1