Re: libpq++ build problems

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, jtv <jtv(at)xs4all(dot)nl>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: libpq++ build problems
Date: 2002-07-07 20:27:13
Message-ID: 200207072027.g67KRD003119@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Good idea. Patch attached. autoconf run.

---------------------------------------------------------------------------

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Looking at configure.in, it looks pretty safe:
>
> > if test "$ac_env_CXXFLAGS" != set; then
> > if test "$GXX" = yes; then
> > CXXFLAGS=-O2
> > else
> > case $template in
> > osf) CXXFLAGS='-O4 -Olimit 2000' ;;
> > unixware) CXXFLAGS='-O' ;;
> > *) CXXFLAGS= ;;
> > esac
> > fi
> > fi
>
> > Because CXXFLAGS is already set for freebsd/alpha, it falls through,
>
> I don't think so; the ac_env_ flag presumably indicates whether
> configure inherited CXXFLAGS from its environment, not whether it
> set it internally.
>
> But even if setting CXXFLAGS in the template did override this code,
> it would be a mistake, because the point of this code is to allow a
> choice between g++-specific and vendor's-compiler-specific CXXFLAGS.
>
> Perhaps we could do something like this:
>
> # set defaults for most platforms
> GCC_CXXFLAGS="-O2"
> VENDOR_CXXFLAGS=
>
> # now include template, which may override either of the above
>
> # now select proper CXXFLAGS
> if test "$ac_env_CXXFLAGS" != set; then
> if test "$GXX" = yes; then
> CXXFLAGS="$GCC_CXXFLAGS"
> else
> CXXFLAGS="$VENDOR_CXXFLAGS"
> fi
> fi
>
> This would allow us to push the special cases for osf and unixware out
> into their template files, which would be a Good Thing.
>
> regards, tom lane
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
>
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Attachment Content-Type Size
unknown_filename text/plain 2.5 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2002-07-07 21:54:42 Re: Proposal: CREATE CONVERSION
Previous Message Tom Lane 2002-07-07 16:46:08 Most system catalog columns should be NOT NULL