Do You PHP はてブロ

Do You PHPはてなからはてブロに移動しました

apxsを使った場合のコンパイルオプション

apxsにちゃんとオプションがあるんですね。以下、Apache2.2.4のapxsの場合。

# /usr/local/apache2/bin/apxs
Usage: apxs -g [-S <var>=<val>] -n <modname>
       apxs -q [-S <var>=<val>] <query> ...
       apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
               [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
               [-Wl,<flags>] [-p] <files> ...
       apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
       apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
# 

mod_proxy_htmlコンパイルするのにlibxml2がinclude dirから外れていたのですが、指定の方法が分からずちょっと焦りました(^^;

# /usr/local/apache2/bin/apxs -c -I/usr/include/libxml2 -i -a mod_proxy_html.c

な感じでうまくいきました。