我想./configure
链接到一个图书馆和一些包含文件。我的库存储在中/home/foo/sw/lib/
,我的文件存储在中/home/foo/sw/include
。
./configure --help
抛出以下内容:
一些有影响力的环境变量:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
我尝试了各种组合:
./configure --prefix=/home/foo/sw -I</home/foo/sw/include> -L</home/foo/sw/lib/>
./configure --prefix=/home/foo/sw -I=/home/foo/sw/include -L=/home/foo/sw/lib/
./configure --prefix=/home/foo/sw -I/home/foo/sw/include -L/home/foo/sw/lib/
etc..
但是我似乎无法正确理解语法。如果有人可以帮助我,将不胜感激。谢谢!