pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Building for 64-bit platform
3+ messages / 2 participants
[nested] [flat]

* Building for 64-bit platform
@ 2020-11-08 06:07 Igor Korot <ikorot01@gmail.com>
  2020-11-08 06:15 ` Re: Building for 64-bit platform Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Igor Korot @ 2020-11-08 06:07 UTC (permalink / raw)
  To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>

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.





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Building for 64-bit platform
  2020-11-08 06:07 Building for 64-bit platform Igor Korot <ikorot01@gmail.com>
@ 2020-11-08 06:15 ` Tom Lane <tgl@sss.pgh.pa.us>
  2020-11-08 19:31   ` Re: Building for 64-bit platform Igor Korot <ikorot01@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2020-11-08 06:15 UTC (permalink / raw)
  To: Igor Korot <ikorot01@gmail.com>; +Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>

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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Building for 64-bit platform
  2020-11-08 06:07 Building for 64-bit platform Igor Korot <ikorot01@gmail.com>
  2020-11-08 06:15 ` Re: Building for 64-bit platform Tom Lane <tgl@sss.pgh.pa.us>
@ 2020-11-08 19:31   ` Igor Korot <ikorot01@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Igor Korot @ 2020-11-08 19:31 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>

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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2020-11-08 19:31 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-11-08 06:07 Building for 64-bit platform Igor Korot <ikorot01@gmail.com>
2020-11-08 06:15 ` Tom Lane <tgl@sss.pgh.pa.us>
2020-11-08 19:31   ` Igor Korot <ikorot01@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox