Re: [HACKERS] PostgreSQL 6.5.1: libpq++ libraries on IRIX 6.5 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] PostgreSQL 6.5.1: libpq++ libraries on IRIX 6.5
Date
Msg-id 24128.936458286@sss.pgh.pa.us
Whole thread Raw
In response to PostgreSQL 6.5.1: libpq++ libraries on IRIX 6.5  (Yu Cao <yucao@falcon.kla-tencor.com>)
Responses Re: [HACKERS] PostgreSQL 6.5.1: libpq++ libraries on IRIX 6.5  (Yu Cao <yucao@falcon.kla-tencor.com>)
List pgsql-hackers
Yu Cao <yucao@falcon.kla-tencor.com> writes:
> I'm not sure whether using "CC" to create libraries for the pure C
> modules would work (my guess is it should and I'll try it). If it does
> then it'll be easy to patch the IRIX makefile template. But then the
> downside is people will be required to have the C++ compiler even if
> they don't care about libpq++.

Not necessarily.  Since 6.4 or so, the "template" files are not just
static assignments of variable values --- they can actually contain
arbitrary fragments of shell script (see configure.in's code that
reads them).  So you could do something like
    if [ -x /usr/bin/CC ]
    then
        CC= CC
    else
        CC= cc
    fi
in the IRIX template.

            regards, tom lane

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] array manipulations
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] temp table oddness?