Обсуждение: Building for 64-bit platform

Поиск
Список
Период
Сортировка

Building for 64-bit platform

От
Igor Korot
Дата:
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.



Re: Building for 64-bit platform

От
Tom Lane
Дата:
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



Re: Building for 64-bit platform

От
Igor Korot
Дата:
Thx.

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