Re: fixing Makefile.shlib for solaris/gcc with -m64 flag

Поиск
Список
Период
Сортировка
От Jignesh K. Shah
Тема Re: fixing Makefile.shlib for solaris/gcc with -m64 flag
Дата
Msg-id 45AE484F.6030007@sun.com
обсуждение исходный текст
Ответ на Re: fixing Makefile.shlib for solaris/gcc with -m64 flag  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: fixing Makefile.shlib for solaris/gcc with -m64 flag  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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..

I just tested it out.

-Jignesh


Tom Lane wrote:
> "Jignesh K. Shah" <J.K.Shah@Sun.COM> writes:
>> It should be
>>      LINK.shared         = $(COMPILER) -shared
> 
> Why?  What's the difference, and why is it appropriate to fix it that
> way instead of by changing CFLAGS?
> 
>             regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Temparary disable constraint
Следующее
От: Tom Lane
Дата:
Сообщение: Re: fixing Makefile.shlib for solaris/gcc with -m64 flag