【问题标题】:compiling lighttpd with default config options使用默认配置选项编译 lighttpd
【发布时间】:2014-03-25 01:43:36
【问题描述】:

我即将编译 lighttpd。而且我想知道是否有一个命令显示选项数组,如果我选择默认值,程序将被编译?

./configure

事实上我在 ./configure --help 中看到有一些是默认的,但我喜欢完整的列表

换一种说法:是

的结果
apt-get source lighttpd
./configure
make
make install
make clean

同样的想法

apt-get install lighttpd

【问题讨论】:

  • 尝试 dpkg-buildpackage。请参阅此处了解更多信息:stackoverflow.com/questions/130894/…
  • 绝对不是,例如,默认前缀是/usr/local,但在使用apt-get 安装的包中,它通常是/usr
  • 怎样才能知道正式版是用什么选项编译的?

标签: linux compilation apt


【解决方案1】:

最好的办法是找到与您的版本相对应的构建日志。例如对于 ubuntu saucy,lighttpd 的 build log 显示

dh_auto_configure -- \
            --disable-dependency-tracking \
            --libdir=/usr/lib/lighttpd \
            --libexecdir="/usr/lib/lighttpd" \
            --with-attr \
            --with-fam \
            --with-gdbm \
            --with-kerberos5 \
            --with-ldap \
            --with-lua=lua5.1 \
            --with-memcache \
            --with-mysql \
            --with-openssl \
            --with-pcre \
            --with-webdav-locks \
            --with-webdav-props \
    CFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security" CPPFLAGS="-D_FORTIFY_SOURCE=2" CXXFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security" FFLAGS="-g -O2" LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro" 

【讨论】:

    猜你喜欢
    • 2011-03-09
    • 2013-10-23
    • 1970-01-01
    • 2013-04-11
    • 2011-05-28
    • 2019-06-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多