>Okay.... I have modified CFLAGS in restore-src/Makefile "-g" and
>recompiled.
>
>The end result is a file size not much bigger than amidxtaped without
>debug.  Shouldn't amidxtaped with debug be substantially bigger?

Probably.  It's not easy getting Amanda compiled with debugging in the
GNU autoconf/libtool magic environment.

Here's what I do:

  * Start from scratch, i.e. "make distclean" or remove config.cache
    and all the .o files.

  * Before you run ./configure, set the CFLAGS environment variable to
    "-g", e.g.:

      env CFLAGS=-g ./configure ...

  * Use --disabled-shared.

You need to rebuild everything, not just amidxtaped, because of the
Amanda libraries it brings in.  But you only need to install/test the
resulting amidxtaped binary.  With --disable-shared involved, it should
be self-contained.

>\Ben

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

Reply via email to