including static library to ./configure

你离开我真会死。 提交于 2019-12-06 06:31:34

问题


how do i include two static library while executing the command ./configure. Ex:

./configure --prefix=/usr \
    LDFLAGS="-L/home/lancy/dictionary/src/WordNet-3.0/lib -lWN"

here only one static library is include. how do i add such another static library to LDFLAGS in the same command.


回答1:


You can just add more linker switches, e.g.

LDFLAGS="-L/path/1/ -lLib1 -L/path/2/ -lLib2"

But you might do better editing these into the Makefile.in unless you need them for the configure checks too?



来源:https://stackoverflow.com/questions/3482853/including-static-library-to-configure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!