使用默认配置选项编译lighttpd

时间:2014-02-23 15:17:42

标签: linux compilation apt

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

./configure

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

另一种方式:是

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

同样的想法

apt-get install lighttpd

1 个答案:

答案 0 :(得分:0)

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

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"