Re: fixing Makefile.shlib for solaris/gcc with -m64 flag - Mailing list pgsql-hackers

From Tom Lane
Subject Re: fixing Makefile.shlib for solaris/gcc with -m64 flag
Date
Msg-id 11482.1170268963@sss.pgh.pa.us
Whole thread Raw
In response to Re: fixing Makefile.shlib for solaris/gcc with -m64 flag  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: fixing Makefile.shlib for solaris/gcc with -m64 flag
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Am Mittwoch, 17. Januar 2007 17:12 schrieb Tom Lane:
>> "Jignesh K. Shah" <J.K.Shah@Sun.COM> writes:
>>> simple if I use -m64 for 64 bit then all end binaries are generated
>>> 64-bit and the shared libraries are generated 32-bit and the compilation
>>> fails (ONLY ON SOLARIS) since that particular line is only for the
>>> condition Solaris AND gcc.
>>> 
>>> If I use the COMPILER which is CC + CFLAGS it passes -m64 properly to it
>>> and generates shared libraries 64-bit and the compile continues..
>> 
>> Hmm ... I see we're doing it that way already for some other platforms,
>> but I can't help thinking it's a kluge.  Wouldn't the correct answer be
>> that -m64 needs to be in LDFLAGS?

> The correct answer may be to put -m64 into CC.

Did we conclude that that was a satisfactory solution, or is this still
a live patch proposal?

If -m64 in CC is the right solution, it should probably be mentioned in
FAQ_Solaris.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: stack usage in toast_insert_or_update()
Next
From: elein
Date:
Subject: [GENERAL] 8.2.1 Compiling Error