[OpenAFS-devel] where to set compile flags

Martin MOKREJŠ mmokrejs@natur.cuni.cz
Thu, 12 Dec 2002 15:31:23 +0100 (CET)


On 11 Dec 2002, Joakim Fallsjo wrote:

> Martin MOKREJŠ <mmokrejs@natur.cuni.cz> writes:
>
> > On 11 Dec 2002, Joakim Fallsjo wrote:
> >
> > > Martin MOKREJŠ <mmokrejs@natur.cuni.cz> writes:
> > >
> > > > Hi,
> > > >   it seems CFLAGS=..." ./configure does not work, what the INSTALL says.
> > > > What's the proposed way to set "-g2"?
> > > >
> > > I guesss it depends on your shell:
> > > for bash:
> > > CFLAGS=-g2 ./configure
> > >
> [...]
>
> What if you run;
>
> make CFLAGS+=-g2

No, that break s the compilation. I use bash, it doesn't append "-g2" co
CFLAGS, but replaces that. So, I get:

cd src; cd procmgmt ; make all
make[3]: Entering directory `/afs/.natur.cuni.cz/sun4x_56/openafs-1.2.8-rc3/src/procmgmt'
cc -g2 -g2 -I/usr/local/include -I/software/@sys/usr/include -I/usr/local/BerkeleyDB.4.0/include -I/usr/local/openssl/include -I/software/@sys/usr/include/freetype2 -I/software/@sys/usr/include/libxml2 -I/software/@sys/usr/include/libwmf  -c -o procmgmt_unix.o procmgmt_unix.c
cc-1005 cc: ERROR File = procmgmt_unix.c, Line = 10
  The source file "afsconfig.h" is unavailable.

  #include <afsconfig.h>
                        ^

1 catastrophic error detected in the compilation of "procmgmt_unix.c".
Compilation terminated.
make[3]: *** [procmgmt_unix.o] Error 2
make[3]: Leaving directory `/afs/.natur.cuni.cz/sun4x_56/openafs-1.2.8-rc3/src/procmgmt'


>
> or
>
> make CFLAGS=-g2

Isn't much better solutions. I see some prepared Makefile.sgi65 are being
copied over, it seems I really cannot add -g2 easily. Could someone who
developed the auto* part shed more light into the process?

Look for example where does come from -mips3 -n32.

-- 
Martin Mokrejs <mmokrejs@natur.cuni.cz>, <m.mokrejs@gsf.de>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics <http://mips.gsf.de>
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585