Re: CVS Head psql bug? - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: CVS Head psql bug?
Date
Msg-id 20080626.084045.62235971.t-ishii@sraoss.co.jp
Whole thread Raw
In response to Re: CVS Head psql bug?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: CVS Head psql bug?
List pgsql-hackers
> Tatsuo Ishii <ishii@sraoss.co.jp> writes:
> > So the difference seems:
> > --as-needed -Wl,
> > is added to CVS Head.
> 
> There is code in configure that's supposed to check whether or not that
> breaks readline.  Would you look at the portion of config.log where it
> tests that, and see why it failed to notice a problem?

It seems configure only checks whether linking was successful. I think
it should check whether ./conftest was successful.

configure:25642: checking if gcc supports -Wl,--as-needed
configure:25674: gcc -o conftest -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wendif-labels
-fno-strict-aliasing -D_GNU_SOURCE    -Wl,--as-needed conftest.c -lz -lreadline -lncurses -lcrypt -ldl -lm  >&5
 
configure:25680: $? = 0
configure:25686: result: yes
configure:25765: using CFLAGS=-O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wendif-labels
-fno-strict-aliasing
configure:25767: using CPPFLAGS= -D_GNU_SOURCE 
configure:25769: using LDFLAGS=  -Wl,--as-needed
configure:25911: creating ./config.status
--
Tatsuo Ishii
SRA OSS, Inc. Japan


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: CVS Head psql bug?
Next
From: Tom Lane
Date:
Subject: Re: Creating a VIEW with a POINT column