For the archives:

On 1/22/06, Alexander Farber <[EMAIL PROTECTED]> wrote:
> how could I please compile the in-tree Apache with -ggdb added and -O2 
> removed?
>
> I've tried setting EXTRA_CFLAGS=-ggdb in src/Configuration,
> but that file seems not to be used.

    cd /usr/src/usr.sbin/httpd
    make -f Makefile.bsd-wrapper DEBUG=1 CFLAGS="-ggdb -O0" clean
    make -f Makefile.bsd-wrapper DEBUG=1 CFLAGS="-ggdb -O0" obj
    make -f Makefile.bsd-wrapper DEBUG=1 CFLAGS="-ggdb -O0" depend
    make -f Makefile.bsd-wrapper DEBUG=1 CFLAGS="-ggdb -O0"
    sudo make -f Makefile.bsd-wrapper DEBUG=1 CFLAGS="-ggdb -O0" install

This has even put the flags "-ggdb -O0" into /usr/sbin/apxs,
so that I was able to debug my Apache module in gdb right away.

Also I was wrong about src/Configuration not being used

Reply via email to