How do I get rid of LD_LIBRARY_PATH at run-time?

后端 未结 7 1092
温柔的废话
温柔的废话 2021-02-14 10:25

I am building a C++ application that uses Intel\'s IPP library. This library is installed by default in /opt and requires you to set LD_LIBRARY_PATH both for compil

7条回答
  •  囚心锁ツ
    2021-02-14 11:07

    You can check if the path to the library is being picked up from your -R flag by running the ldd command or the readelf command on your binary. The LD_LIBRARY_PATH environment variable is an override, so shouldn't be necessary normally.

提交回复
热议问题