GCC 4.5.1 configure参数中文注释

来源:互联网 发布:淘宝的收货地址怎么看 编辑:程序博客网 时间:2024/05/21 19:38

只翻译了部分自己会用到的参数,翻译的不好,请见谅

转载请注明出处:Koangel

使用方式: ./configure [选项]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

使用默认选项请跳过。

配置文档参数:
  -h, --help              显示帮助信息并退出
      --help=short        显示具体指令的帮助信息
      --help=recursive    显示所有包含此信息的帮助信息
  -V, --version           显示版本信息
  -q, --quiet, --silent   将不打印“CHECKing....”这样的信息
      --cache-file=FILE   测试返回的缓存文件 [disabled]
  -C, --config-cache      `--cache-file=config.cache'的另一种用法
  -n, --no-create         将不创建输出文件
      --srcdir=DIR        查询目标目录的源文件 [configure dir or `..']

安装目录选项:
  --prefix=PREFIX         安装至指定[PREFIX]的目录
                          默认[/usr/local]
  --exec-prefix=EPREFIX   安装至指定[EPREFIX]的目录
                          默认与[PREFIX]相同

默认情况下, `make install'将把文件安装至
`/usr/local/bin', `/usr/local/lib' 等目录. 但你可以通过以上参数定义[PREFIX]的值来改变目录
例如默认情况下目录为 `/usr/local' 使用指令`--prefix'改变目录,
例子: `--prefix=$HOME'.

为了更好的定义项目, 我们将可以使用以下参数改变更多选项.

以下参数将可直接定义更细致的系统目录(以下参数尽量默认):
  --bindir=DIR            用户系统所执行程序目录 默认:[EPREFIX/bin]
  --sbindir=DIR           系统管理员所执行程序目录 默认: [EPREFIX/sbin]
  --libexecdir=DIR        应用程序执行目录 默认:[EPREFIX/libexec]
  --sysconfdir=DIR        只读配置文件目录 默认: [PREFIX/etc]
  --sharedstatedir=DIR    数据文件描述安装目录 默认: [PREFIX/com]
  --localstatedir=DIR     本地数据安装目录 默认: [PREFIX/var]
  --libdir=DIR            对象库 默认:[EPREFIX/lib]
  --includedir=DIR        C语言头文件 默认: [PREFIX/include]
  --oldincludedir=DIR     C语言头文件旧目录 默认: [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info文档目录 [DATAROOTDIR/info]
  --localedir=DIR         本地数据目录 [DATAROOTDIR/locale]
  --mandir=DIR            man 文档目录 [DATAROOTDIR/man]
  --docdir=DIR            ROOT文档目录 [DATAROOTDIR/doc/PACKAGE]
  --htmldir=DIR           html文档目录 [DOCDIR]
  --dvidir=DIR            DVI文档目录 [DOCDIR]
  --pdfdir=DIR            pdf文档目录 [DOCDIR]
  --psdir=DIR             ps文档目录 [DOCDIR]

参数名:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

系统类型:
  --build=BUILD     配置BUILD方式 [guessed]
  --host=HOST       跨编译器编译时定义主机[BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]

可选参数:
  --disable-option-checking  忽略未执行 --enable/--with 的所有选项
  --disable-FEATURE       将不包含 FEATURE(指定的特性) (与--enable-FEATURE=no 一致)
  --enable-FEATURE[=ARG]  包含FEATURE(指定特性) [ARG=yes] 注:结尾为YES或NO YES为打开 NO为关闭
  --enable-gold           使用GOLD代替 ld (某些系统特性)
  --enable-libada         创建 libada 目录
  --enable-libssp         创建 libssp 目录
  --enable-build-with-cxx 使用 C++ 编译器替代旧的 C 编译器
  --disable-ppl-version-check    关闭检测 PPL 的版本
  --disable-cloog-version-check  关闭检测 CLooG 的版本
  --enable-lto            开启连接时优化支持
  --enable-stage1-languages[=all]   在STAGE1期间所选择编译语言种类,  Mostly useful for compiler development.
  --enable-objc-gc        开启使用在OBJECTIVE-C运行时 Boehm 的垃圾回收机制   
  --enable-bootstrap      开启引导程序 [yes if native build]
  --enable-serial-[{host,target,build}-]configure
                          force sequential configuration of
                          sub-packages for the host, target or build
                          machine, or all sub-packages
  --enable-maintainer-mode enable make rules and dependencies not useful
                          (and sometimes confusing) to the casual installer
  --enable-stage1-checking[=all]   选择在stage1时期内检测编译器选项 注:默认就好

  --enable-werror         在 stage2或之后时间内, 开启-Werror选项

可选数据包:
  --with-PACKAGE[=ARG]    开启使用的包 [ARG=yes] 注:ARG可选YES或NO
  --without-PACKAGE       关闭不用的包 (与 --with-PACKAGE=no 一致)
  --with-build-libsubdir=DIR  包含链接库所在路径
  --with-mpc=PATH        定义MPC系统所安装的路径 注:默认情况下是/usr/local/mpc.
                          同等于定义: --with-mpc-include=PATH/include
                          链接库 --with-mpc-lib=PATH/lib
  --with-mpc-include=PATH
                          同上定义 MPC 的头文件路径
  --with-mpc-lib=PATH     指定 MPC 链接库的路径
  --with-mpfr-dir=PATH    此选项将移除
  --with-mpfr=PATH        指定 MPFR 安装路径 注:默认/usr/local/mpfr
                          同等于定义: --with-mpfr-include=PATH/include
                          链接库 --with-mpfr-lib=PATH/lib
  --with-mpfr-include=PATH
                          指定 MPFR 头文件路径
  --with-mpfr-lib=PATH    指定 MPFR 链接库路径
  --with-gmp-dir=PATH     此选项已移除
  --with-gmp=PATH         指定 GMP 的安装路径 注:默认/usr/local/gmp
                          同等于: --with-gmp-include=PATH/include
                              --with-gmp-lib=PATH/lib
  --with-gmp-include=PATH 定义 GMP 头文件路径
  --with-gmp-lib=PATH     指定 GMP 链接库路径
  --with-host-libstdcxx=L 在链接PPL时使用参数L链接libstdc++库,而不使用静态库。
  --with-stage1-ldflags=FLAGS stage1时链接标记
  -with-stage1-libs=LIBS     stage1时链接所需库
  --with-boot-libs=LIBS     stage2或更后时链接库
  --with-boot-ldflags=FLAGS  stage2或更后时链接标记
  --with-ppl=PATH         指定 PPL 的安装目录
                          同等于: --with-ppl-include=PATH/include
                                   --with-ppl-lib=PATH/lib
  --with-ppl-include=PATH 指定 PPL 头文件路径
  --with-ppl-lib=PATH     指定 PPL 链接库路径
  --with-cloog=PATH       指定 CLooG-PPL 安装路径
                          同等于 --with-cloog-include=PATH/include
                            --with-cloog-lib=PATH/lib
  --with-cloog-include=PATH 指定 CLooG 头文件路径
  --with-cloog-lib=PATH   指定 CLooG 链接库路径
  --with-libelf=PATH       指定 libelf 的安装路径
                          同等于 --with-libelf-include=PATH/include
                           --with-libelf-lib=PATH/lib
  --with-libelf-include=PATH 指定 libelf 头文件路径
  --with-libelf-lib=PATH   指定 libelf 链接库路径
  --with-build-sysroot=SYSROOT
                         指定创建时的系统ROOT目录
  --with-debug-prefix-map='A=B C=D ...'
                             map A to B, C to D ... in debug information
--with-build-config='NAME NAME2...'
                          Use config/NAME.mk build configuration
  --with-build-time-tools=PATH
                          指定在创建时工具查询目录

作者:K.O Angel

环境变量:
  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    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CPP         C preprocessor
  AR          AR for the host
  AS          AS for the host
  DLLTOOL     DLLTOOL for the host
  LD          LD for the host
  LIPO        LIPO for the host
  NM          NM for the host
  RANLIB      RANLIB for the host
  STRIP       STRIP for the host
  WINDRES     WINDRES for the host
  WINDMC      WINDMC for the host
  OBJCOPY     OBJCOPY for the host
  OBJDUMP     OBJDUMP for the host
  CC_FOR_TARGET
              CC for the target
  CXX_FOR_TARGET
              CXX for the target
  GCC_FOR_TARGET
              GCC for the target
  GCJ_FOR_TARGET
              GCJ for the target
  GFORTRAN_FOR_TARGET
              GFORTRAN for the target
  AR_FOR_TARGET
              AR for the target
  AS_FOR_TARGET
              AS for the target
  DLLTOOL_FOR_TARGET
              DLLTOOL for the target
  LD_FOR_TARGET
              LD for the target
  LIPO_FOR_TARGET
              LIPO for the target
  NM_FOR_TARGET
              NM for the target
  OBJDUMP_FOR_TARGET
              OBJDUMP for the target
  RANLIB_FOR_TARGET
              RANLIB for the target
  STRIP_FOR_TARGET
              STRIP for the target
  WINDRES_FOR_TARGET
              WINDRES for the target
  WINDMC_FOR_TARGET
              WINDMC for the target

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to the package provider.

0 0
原创粉丝点击