Re: Initdb problem on debian mips cobalt: Bus error

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, glynastill(at)yahoo(dot)co(dot)uk, Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>, pgsql-general(at)postgresql(dot)org
Subject: Re: Initdb problem on debian mips cobalt: Bus error
Date: 2008-08-04 23:44:17
Message-ID: 20080804234417.GE4483@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gregory Stark wrote:
> "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message D. Dante Lorenso 2008-08-05 01:06:01 Easy way to alias all columns in a table by adding a prefix or suffix?
Previous Message Tom Lane 2008-08-04 23:29:32 Re: Initdb problem on debian mips cobalt: Bus error