Debugging 如何在调试/发布模式下构建Sqlite二进制文件
如何在调试或发布模式下构建SQLite二进制文件 我已经从下载了源代码(sqlite-autoconf-312000.tar.gz)。它提供的配置文件不支持--enable debug选项 ./configure--help的结果如下:Debugging 如何在调试/发布模式下构建Sqlite二进制文件,debugging,sqlite,release,configure,Debugging,Sqlite,Release,Configure,如何在调试或发布模式下构建SQLite二进制文件 我已经从下载了源代码(sqlite-autoconf-312000.tar.gz)。它提供的配置文件不支持--enable debug选项 ./configure--help的结果如下: anshu@vijayakumart:~/Git/sqlite-autoconf-3120000$ ./configure --help `configure' configures sqlite 3.12.0 to adapt to many kinds of
anshu@vijayakumart:~/Git/sqlite-autoconf-3120000$ ./configure --help
`configure' configures sqlite 3.12.0 to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [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.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print `checking ...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for `--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or `..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
Program names:
--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
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-silent-rules less verbose build output (undo: "make V=1")
--disable-silent-rules verbose build output (undo: "make V=0")
--disable-largefile omit support for large files
--enable-dependency-tracking
do not reject slow dependency extractors
--disable-dependency-tracking
speeds up one-time build
--enable-shared[=PKGS] build shared libraries [default=yes]
--enable-static[=PKGS] build static libraries [default=yes]
--enable-fast-install[=PKGS]
optimize for fast installation [default=yes]
--disable-libtool-lock avoid locking (might break parallel builds)
--enable-editline use BSD libedit
--enable-readline use readline
--enable-threadsafe build a thread-safe library [default=yes]
--enable-dynamic-extensions
support loadable extensions [default=yes]
--enable-fts5 include fts5 support [default=no]
--enable-json1 include json1 support [default=no]
--enable-static-shell statically link libsqlite3 into shell tool
[default=yes]
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
both]
--with-aix-soname=aix|svr4|both
shared library versioning (aka "SONAME") variant to
provide on AIX, [default=aix].
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the
compiler's sysroot if not specified).
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>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
LT_SYS_LIBRARY_PATH
User-defined run-time library search path.
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.
anshu@vijayakumart:~/Git/sqlite-autoconf-312000$。/配置--帮助
`“配置”配置sqlite 3.12.0以适应多种系统。
用法:./configure[选项]。。。[VAR=VALUE]。。。
要分配环境变量(如CC、CFLAGS…),请将其指定为
VAR=值。有关一些有用变量的说明,请参见下文。
括号中指定了选项的默认值。
配置:
-h、 --帮助显示此帮助并退出
--help=特定于此软件包的简短显示选项
--help=递归显示所有包含包的简短帮助
-五、 --版本显示版本信息并退出
-q、 --安静,--安静不打印“检查…”消息
--缓存文件=文件中的文件缓存测试结果[已禁用]
-C、 “--cache file=config.cache”的配置缓存别名
-n、 --不创建不创建输出文件
--srcdir=DIR在DIR[configure DIR或`..']中查找源
安装目录:
--prefix=prefix在prefix中安装与体系结构无关的文件
[/usr/local]
--exec prefix=EPREFIX在EPREFIX中安装与体系结构相关的文件
[前缀]
默认情况下,“make install”将安装中的所有文件
`/usr/local/bin'、`/usr/local/lib'等。您可以指定
除使用“---prefix”的“/usr/local”之外的安装前缀,
例如“--prefix=$HOME”。
为了更好地控制,请使用以下选项。
安装目录的微调:
--bindir=DIR用户可执行文件[EPREFIX/bin]
--sbindir=DIR系统管理可执行文件[EPREFIX/sbin]
--libexecdir=DIR程序可执行文件[EPREFIX/libexec]
--sysconfdir=DIR只读单机数据[前缀/etc]
--sharedstatedir=DIR可修改体系结构独立数据[PREFIX/com]
--localstatedir=DIR可修改的单机数据[前缀/var]
--libdir=DIR对象代码库[EPREFIX/lib]
--includedir=DIR C头文件[前缀/包含]
--oldincludedir=DIR非gcc的C头文件[/usr/include]
--datarootdir=DIR只读arch.-独立数据根[前缀/共享]
--datadir=DIR只读架构独立数据[DATAROOTDIR]
--infodir=DIR信息文档[DATAROOTDIR/info]
--localedir=DIR依赖于区域设置的数据[DATAROOTDIR/locale]
--mandir=DIR-man文档[DATAROOTDIR/man]
--docdir=DIR文档根[DATAROOTDIR/doc/sqlite]
--htmldir=DIR html文档[DOCDIR]
--dvidir=DIR dvi文档[DOCDIR]
--pdfdir=DIR pdf文档[DOCDIR]
--psdir=DIR ps文档[DOCDIR]
程序名称:
--program prefix=为已安装的程序名添加前缀前缀
--程序后缀=后缀将后缀附加到已安装的程序名
--程序转换名称=程序在已安装的程序名称上运行sed程序
系统类型:
--build=为构建配置构建[猜测]
--主机=主机交叉编译以生成要在主机上运行的程序[生成]
可选功能:
--禁用选项检查忽略无法识别的--enable/--with options
--禁用功能不包括功能(与--enable FEATURE=no相同)
--启用功能[=ARG]包括功能[ARG=yes]
--启用无提示规则,减少详细的生成输出(撤消:“使V=1”)
--禁用静默规则详细生成输出(撤消:“使V=0”)
--禁用大文件忽略对大文件的支持
--启用依赖项跟踪
不要拒绝慢速依赖项提取器
--禁用依赖项跟踪
加速一次性构建
--启用共享[=PKGS]生成共享库[默认值=是]
--启用静态[=PKGS]生成静态库[默认值=是]
--启用快速安装[=PKGS]
优化以实现快速安装[默认值=是]
--禁用libtool lock避免锁定(可能会中断并行生成)
--启用编辑行使用BSD libedit
--启用readline使用readline
--启用线程安全构建线程安全库[默认值=是]
--启用动态扩展
支持可加载扩展[默认值=是]
--启用fts5包括fts5支持[默认值=否]
--enable-json1包含json1支持[默认值=否]
--启用静态shell将libsqlite3静态链接到shell工具
[默认值=是]
可选软件包:
--对于包[=ARG]使用包[ARG=yes]
--不带包不使用包(与--with PACKAGE=no相同)
--使用pic[=PKGS]时,尝试仅使用pic/非pic对象[默认值=使用
两者]
--使用aix soname=aix | svr4 |两者
共享库版本控制(又名“SONAME”)的变体
在AIX上提供[default=AIX]。
--对于GNULD,假设C编译器使用GNULD[default=no]
--使用sysroot[=DIR]在DIR(或
编译器的sysroot(如果未指定)。
一些有影响的环境变量:
CC编译器命令
CFLAGS C编译器标志
LDFLAGS链接器标志,例如,-L,如果在
非标准目录
要传递给链接器的LIBS库,例如-l
CPPFLAGS(目标)C/C++预处理器标志,例如-I if
在非标准目录中有标题
LT\u系统\u库\u路径
用户定义的运行时库搜索路径。
cppc预处理器
使用这些变量来覆盖
configure CPPFLAGS=-DSQLITE_DEBUG