Inhibit default library paths with gcc

前端 未结 4 956
太阳男子
太阳男子 2020-12-30 02:03

Is there a way to inhibit the default library path search with gcc? -nostdinc does this for the include path search, but -nostdlib, either by omiss

4条回答
  •  滥情空心
    2020-12-30 02:08

    How about just setting the LIBRARY_PATH environment variable?

    If I understand the question correctly, you want to do something like forcing the linker to look at a local library path before the default path, so you can just explicitly set that variable to control the order.

提交回复
热议问题