开发者

including static library to ./configure

开发者 https://www.devze.com 2023-01-11 07:33 出处:网络
how do i include two static library while executing the command ./configure. Ex: ./configure --prefix=/usr \\

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 开发者_如何学Cstatic library is include. how do i add such another static library to LDFLAGS in the same command.


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号