Building for 64-bit platform

Started by Igor Korotover 5 years ago3 messagesgeneral
Jump to latest
#1Igor Korot
ikorot01@gmail.com

Hi,
I build libpq with the standard configure/dmake.
Now I realize I need t build it for a 64-bit platform.

My questions are:
Is it enough to ust do

[code]
cd libpq
CFLAGS="-m64" LDFLAGS="-m64" ./configure
dmake
[/code]

or I have to do:

[code]
dmake clean
[/code]

?

2. Is my configure line above correct?
Or PostgreSQL configure contains special flags for 64 bit builds already?

Thank you.

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Igor Korot (#1)
Re: Building for 64-bit platform

Igor Korot <ikorot01@gmail.com> writes:

I build libpq with the standard configure/dmake.
Now I realize I need t build it for a 64-bit platform.

My questions are:
Is it enough to ust do

Do "make distclean" at the top level, then re-configure with the
new options and re-make.

Maybe you can get away with a partial rebuild, but there is no way
that it's worth your time to experiment. On any machine built in
the last two decades, you could have already finished a full rebuild
in the time it took me to type this. On the other hand, if you do
a partial rebuild and it turns out to be broken, you could waste
many hours figuring that out.

regards, tom lane

#3Igor Korot
ikorot01@gmail.com
In reply to: Tom Lane (#2)
Re: Building for 64-bit platform

Thx.

Show quoted text

On Sun, Nov 8, 2020 at 12:15 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:

Igor Korot <ikorot01@gmail.com> writes:

I build libpq with the standard configure/dmake.
Now I realize I need t build it for a 64-bit platform.

My questions are:
Is it enough to ust do

Do "make distclean" at the top level, then re-configure with the
new options and re-make.

Maybe you can get away with a partial rebuild, but there is no way
that it's worth your time to experiment. On any machine built in
the last two decades, you could have already finished a full rebuild
in the time it took me to type this. On the other hand, if you do
a partial rebuild and it turns out to be broken, you could waste
many hours figuring that out.

regards, tom lane