Re: Compiler options for plperl - Mailing list pgsql-patches

From Tom Lane
Subject Re: Compiler options for plperl
Date
Msg-id 7819.1036084306@sss.pgh.pa.us
Whole thread Raw
In response to Compiler options for plperl  (Reinhard Max <max@suse.de>)
Responses Re: Compiler options for plperl  (Reinhard Max <max@suse.de>)
List pgsql-patches
Reinhard Max <max@suse.de> writes:
> applications that use Perl as embedded interpreter should be compiled
> with the same compiler flags that were used to compile the perl shared
> library itself. The attached patch fixes this.

Unfortunately, this goes down the same dead-end path we went down three
or four releases ago.  If we try to do the above then we must also use
the same compiler that was used for Perl.  For example, your patch will
instantly blow up on my system where Perl is built with HPUX's cc (per
its default configuration) and Postgres is built with gcc (also its
default choice) --- the compiler switches aren't even slightly alike.

Please explain the problem you're trying to solve, rather than offering
an unworkable patch with no explanation.

            regards, tom lane

pgsql-patches by date:

Previous
From: Reinhard Max
Date:
Subject: test-and-set for s390x and powerpc64
Next
From: Tom Lane
Date:
Subject: Re: test-and-set for s390x and powerpc64