开发者

How do I specify the path to XYZ when I use configure --with-XYZ=yes

I am trying to compile c-sources with the configure, make, make install trilogy.

Since I want to compile the sources so that they use another library (XYZ) that is not used by default, I can specify that with a

./configure --with-XYZ=yes

However, for the moment, XYZ is not installed in a default location, so I guess I can specify the path to the location of XYZ with that same configure script. If my guess is right, I'd ap开发者_运维百科preciate if someone could point me towards the right direction of how to do that.


Specify the library path on the command line like this:

./configure --with-XYZ=yes LDFLAGS=-L/path/to/xyz


The most general way is to specify the LDFLAGS (for -L) and CPPFLAGS (for -I) variables, like ptomato described.

In many cases, there are other ways that are specific to the option and the package that provides it. Sometimes it might be --with-XYZ=PATH, sometimes it could be --with-XYZ-path=PATH, sometimes pkg-config is involved. You need to read the particular installation documentation, or more often than not do some detective work.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜