LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2049|回复: 3

编译git时如何禁止使用python

[复制链接]
发表于 2010-9-12 17:07:26 | 显示全部楼层 |阅读模式
在CBLFS手册上看到python在编译git时只是选择性的,但是我在编译git时总是需要python,请问有没有办法让git在编译时不使用python?
发表于 2010-9-12 19:56:59 | 显示全部楼层
同求, 好多软件编译都用python了, 太讨厌了
回复 支持 反对

使用道具 举报

发表于 2010-10-4 09:51:11 | 显示全部楼层
我记得有一个configure命令参数是禁用python的,请./configure --help自己查看(我忘性太大)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-11-16 11:22:27 | 显示全部楼层
好像没有这个开关

  1. ./configure --help
  2. `configure' configures git 1.7.0.6 to adapt to many kinds of systems.

  3. Usage: ./configure [OPTION]... [VAR=VALUE]...

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

  6. Defaults for the options are specified in brackets.

  7. Configuration:
  8.   -h, --help              display this help and exit
  9.       --help=short        display options specific to this package
  10.       --help=recursive    display the short help of all the included packages
  11.   -V, --version           display version information and exit
  12.   -q, --quiet, --silent   do not print `checking...' messages
  13.       --cache-file=FILE   cache test results in FILE [disabled]
  14.   -C, --config-cache      alias for `--cache-file=config.cache'
  15.   -n, --no-create         do not create output files
  16.       --srcdir=DIR        find the sources in DIR [configure dir or `..']

  17. Installation directories:
  18.   --prefix=PREFIX         install architecture-independent files in PREFIX
  19.                           [/usr/local]
  20.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  21.                           [PREFIX]

  22. By default, `make install' will install all the files in
  23. `/usr/local/bin', `/usr/local/lib' etc.  You can specify
  24. an installation prefix other than `/usr/local' using `--prefix',
  25. for instance `--prefix=$HOME'.

  26. For better control, use the options below.

  27. Fine tuning of the installation directories:
  28.   --bindir=DIR            user executables [EPREFIX/bin]
  29.   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  30.   --libexecdir=DIR        program executables [EPREFIX/libexec]
  31.   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  32.   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  33.   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  34.   --libdir=DIR            object code libraries [EPREFIX/lib]
  35.   --includedir=DIR        C header files [PREFIX/include]
  36.   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  37.   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  38.   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  39.   --infodir=DIR           info documentation [DATAROOTDIR/info]
  40.   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  41.   --mandir=DIR            man documentation [DATAROOTDIR/man]
  42.   --docdir=DIR            documentation root [DATAROOTDIR/doc/git]
  43.   --htmldir=DIR           html documentation [DOCDIR]
  44.   --dvidir=DIR            dvi documentation [DOCDIR]
  45.   --pdfdir=DIR            pdf documentation [DOCDIR]
  46.   --psdir=DIR             ps documentation [DOCDIR]

  47. Optional Features:
  48.   --disable-option-checking  ignore unrecognized --enable/--with options
  49.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  50.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  51.   --enable-pthreads=FLAGS FLAGS is the value to pass to the compiler to enable
  52.                           POSIX Threads. The default if FLAGS is not specified
  53.                           is to try first -pthread and then -lpthread.
  54.                           --without-pthreads will disable threading.

  55. Optional Packages:
  56.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  57.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  58.   --with-lib=ARG          ARG specifies alternative name for lib directory
  59.   --with-openssl          use OpenSSL library (default is YES)
  60.                           ARG can be prefix for openssl library and headers
  61.   --with-curl             support http(s):// transports (default is YES)
  62.                           ARG can be also prefix for curl library and headers
  63.   --with-expat            support git-push using http:// and https://
  64.                           transports via WebDAV (default is YES)
  65.                           ARG can be also prefix for expat library and headers
  66.   --without-iconv         if your architecture doesn't properly support iconv
  67.   --with-iconv=PATH       PATH is prefix for libiconv library and headers
  68.                           used only if you need linking with libiconv
  69.   --with-gitconfig=VALUE  Use VALUE instead of /etc/gitconfig as the global
  70.                           git configuration file. If VALUE is not fully
  71.                           qualified it will be interpretted as a path relative
  72.                           to the computed prefix at runtime.
  73.   --with-pager=VALUE      Use VALUE as the fall-back pager instead of 'less'.
  74.                           This is used by things like 'git log' when the user
  75.                           does not specify a pager to use through alternate
  76.                           methods. eg: /usr/bin/pager
  77.   --with-editor=VALUE     Use VALUE as the fall-back editor instead of 'vi'.
  78.                           This is used by things like 'git commit' when the
  79.                           user does not specify a preferred editor through
  80.                           other methods. eg: /usr/bin/editor
  81.   --with-shell=PATH       provide PATH to shell
  82.   --with-perl=PATH        provide PATH to perl
  83.   --with-python=PATH      provide PATH to python
  84.   --with-zlib=PATH        provide PATH to zlib
  85.   --with-tcltk            use Tcl/Tk GUI (default is YES)
  86.                           ARG is the full path to the Tcl/Tk interpreter.
  87.                           Bare --with-tcltk will make the GUI part only if
  88.                           Tcl/Tk interpreter will be found in a system.

  89. Some influential environment variables:
  90.   CC          C compiler command
  91.   CFLAGS      C compiler flags
  92.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  93.               nonstandard directory <lib dir>
  94.   LIBS        libraries to pass to the linker, e.g. -l<library>
  95.   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  96.               you have headers in a nonstandard directory <include dir>
  97.   CPP         C preprocessor

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

  100. Report bugs to <git@vger.kernel.org>.
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表