GNU make manual 翻译( 九十七)

简介:
继续翻译

复制代码
   Although the default set of files to be searched for is `libNAME.so'
and `libNAME.a', this is customizable via the `.LIBPATTERNS' variable.
Each word in the value of this variable is a pattern string.  When a
prerequisite like `-lNAME' is seen, `make' will replace the percent in
each pattern in the list with NAME and perform the above directory
searches using each library filename.

   The default value for `.LIBPATTERNS' is `lib%.so lib%.a', which
provides the default behavior described above.

   You can turn off link library expansion completely by setting this
variable to an empty value.
复制代码
尽管被搜索的缺省文件集合是 libNAME.so 和 libNAME.a ,但是这可以通过 .LIBPATTERNS 变量进行定制。在此变量中的每一个值都是一个模式字符串。当一个 -lNAME 在前提条件中被发现,make 将会把每个模式中的百分号用 NAME 替换,然后用每个库文件名,执行上述的目录搜索。

.LIBPATTERNS 的缺省值是 lib%.so lib%.a,这提供了上述的缺省行为。

你也可以关闭库扩展功能,如果你设置此变量为空值的话。

后文待续


目录
相关文章
|
Linux C语言
make: gcc:命令未找到
make: gcc:命令未找到
make: gcc:命令未找到
|
C语言 C++ Perl
如何处理错误消息Please install the gcc make perl packages
如何处理错误消息Please install the gcc make perl packages
142 0