在任何大包適用於Linux,運行./configure --help
將輸出結尾:如何在運行configure時重寫環境變量?
Some influential environment variables:
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>
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
headers in a nonstandard directory <include dir>
CPP C preprocessor
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
如何使用這些變量包括目錄?我試着運行./configure --CFLAGS="-I/home/package/custom/"
和./configure CFLAGS="-I/home/package/custom/"
,但是這些都不起作用。有什麼建議麼?
但是,您也可以將它們作爲標誌傳遞給進行配置。 – ptomato 2010-04-27 19:30:40