Re: Initdb problem on debian mips cobalt: Bus error - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Initdb problem on debian mips cobalt: Bus error
Date
Msg-id 20080804234417.GE4483@alvh.no-ip.org
Whole thread Raw
In response to Re: Initdb problem on debian mips cobalt: Bus error  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: Initdb problem on debian mips cobalt: Bus error
List pgsql-general
Gregory Stark wrote:
> "Tom Lane" <tgl@sss.pgh.pa.us> writes:
>
> > (Rather than trying to browbeat configure into doing this, I'd suggest
> > manually adjusting CFLAGS in src/Makefile.global, then "make clean" and
> > rebuild.)
>
> eh? either of these should work fine:
>
>  ./configure --enable-debug CFLAGS=-O0
>  CFLAGS=-O0 ./configure --enable-debug
>
> And yes, you have to do make clean. I often forget that step :(

I find it easier to create a src/Makefile.custom containing the
following line:

CFLAGS := $(patsubst -O2,-O0,$(CFLAGS))

When I'm done I just rename the file away to keep it around for next
time.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Initdb problem on debian mips cobalt: Bus error
Next
From: Craig Ringer
Date:
Subject: Re: Fwd: Returning Cursor