all configuration options can be viewed using the./configure--help.
1 、--host=host
Specifies the system platform on which the software runs. If not specified, ' config.guess ' will be run to detect.--host Specifies the prefix of the cross-compilation tool chain
2 、--Build=build
Specifies the system platform on which the package is installed, if we are currently compiling the system in Intel's Pentium machine, then our--build may
Is I686-pc-linux-gnu,. If not specified, the default value will be the value of the '--host ' option.
3 、--Target=garget
Specifies the system platform that the software targets (target to). This is primarily useful in programming language tools such as compilers and assembler contexts. If not specified, the default value of the '--host ' option is used.
In general, we can only specify--host, when--build and--host are different when the configuration file is identified as cross-compiling, otherwise it is local compilation.
From the meaning of these three parameters, it shows that the target of its processing can only be used when different platforms behave differently, and these files are usually directly or indirectly related to the instruction system of the target platform: for example, executable files, the encoding of executables used under different platforms may be completely different, so you must use Corresponding to the program can handle the code can be processed correctly, and if the use of errors may lead to a program error or corrupt files, in order to deal with different platforms under the different coding software, we should specify the target platform to avoid another error processing, and for text files, The same content expression is the same for different platforms, so we don't need to do it specifically for the platform, so we don't have to specify the platform that needs to be processed.
After cross-compiling, you can use the file * * * * * * * To see the type of the generated file, if not, you can go to the Config.log file to see if there is a corresponding compilation tool chain.
4,-enable-feature[=arg]
Conversely, some packages may provide some default prohibited features that can be used with '--enable-feature '. Here ' FEATURE ' is the name of the feature. An attribute may accept an optional parameter. For example:
$./configure--enable-buffers=128
5, '--enable-feature=no ' is synonymous with the above mentioned '--disable-feature '.
--enable-static: Generating a static link library
--enable-shared: Generating a dynamic-link library
These two are used to choose whether the build is a static library or a dynamic library, but I configured the invalid, specifically I do not know why, I hope to have the understanding of the generous enlighten.
6, '--with-package[=arg] '
In the free software community, there is an excellent tradition of using existing packages and libraries. When you configure a source tree with ' Configure ', you can provide information about other packages that have already been installed. For example, the BLT Device Toolkit, which relies on Tcl and TK. To configure BLT, you may need to give ' configure ' To provide some information about where we have installed Tcl and TK:
$./configure--with-tcl=/usr/local--with-tk=/usr/local
'--with-package=no ' is synonymous with the '--without-package ' that will be mentioned below.
7, '--without-package '
Sometimes you may not want your package to interact with packages that are already in the system. For example, you might not want your new compiler to use the GNU ld. You can do this by using this option:
$./configure--without-gnu-ld
8, you can also configure their environment variables, such as:
<span style= "FONT-FAMILY:SIMSUN;FONT-SIZE:14PX;" > CC C compiler command
CFLAGS C Compiler flags</span>
9, '--prefix=prefix '
'--prefix ' is the most commonly used option. The ' Makefile ' of the system will look at the parameters passed with this option, and when a package is installed, it can be completely relocated to a separate part of the structure.
For example, when installing a package, such as Emacs, the following command will cause Emacs Lisp file to be installed to "/opt/gnu/share":
$./configure--prefix=/opt/gnu
10, '--bindir=dir '
Specifies the location where the binaries are installed. The binaries here are defined as programs that can be executed directly by the user.
11, '--sbindir=dir '
Specifies the location where the super binaries are installed. This is a program that is typically executed only by superuser users.
12, '--libdir=dir '
Specifies the location where the library files are installed.
13, '--includedir=dir '
Specifies the installation location of the C header file. This option is also available for other languages such as header files for C + +.
For a more detailed description of the parameters, please refer to: http://blog.csdn.net/williamwang2013/article/details/8529954
http://blogger.org.cn/blog/more.asp?name=lhwork&id=22496
After this, the makefile file will be automatically generated, if you want to modify the compiler environment, etc., you can modify the generated makefile file at this time, can also be in the. /configure the required environment variables before the source is cross-compiled. If you compile a library file, you can include the library file and the corresponding header file in your project.
---------------------
Captain--jack
Source: CSDN
Original: 52959098?utm_source=copy
Copyright NOTICE: This article is for bloggers original article, reprint please attach blog link!
Configure configuration Installation Detailed