包括用于./configure的静态库 [英] including static library to ./configure

查看:732
本文介绍了包括用于./configure的静态库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在执行命令./configure时,如何包括两个静态库.例如:

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"

此处仅包含一个静态库.如何在同一命令中将这样的另一个静态库添加到LDFLAGS.

here only one static 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"

但是您最好将它们编辑到Makefile.in中,除非您也需要它们进行配置检查?

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

这篇关于包括用于./configure的静态库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆