StupidBeauty
Read times:674Posted at:Wed Apr 3 19:03:02 2013
- no title specified

转载:How to add a path to LDFLAGS

有些软件的源码包中代码管理脚本写得不完善,导致某些必须的共享库不被写入链接目标中,进而导致最终链接失败。例如Performous本身需要bzip2这个库,却没有在 configure 脚本里写上依赖关系 。解决办法就是在编译之前在LDFLAGS环境变量中手动加入需要链接的目标共享库。

http://stackoverflow.com/questions/6254245/how-to-add-a-path-to-ldflags

亮点

The question is not really descriptive enough for anyone to answer well, but....

On a Unix-based system you would likely do something like this:

$ export LDFLAGS="-R/the/path/to/the/gmp/lib -L/the/path/to/the/gmp/lib"

$ ./configure

$ make

$ make install

Windows environments with GNU make tools, will need minor tweaks.

赵秀晶

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4