Re: How to Build Postgres in a Portable / Relocatable fashion? - Mailing list pgsql-general

From Tom Lane
Subject Re: How to Build Postgres in a Portable / Relocatable fashion?
Date
Msg-id 2798894.1714790663@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to Build Postgres in a Portable / Relocatable fashion?  (AJ ONeal <coolaj86@proton.me>)
List pgsql-general
AJ ONeal <coolaj86@proton.me> writes:
> It seems like the first bit of magic I need is:
> `--prefix=/doesntexist/postgres`

No, you want an actual path so that "make install" will succeed.
The point is that then you can tar up that installation tree
(relative to its top) and untar it somewhere else.

> I'd like to build as much static as possible (or reasonable). Is there a way to tell it "just include openssl"?

No, and are you really sure you want that?  Then it's on you to
rebuild and redistribute, pronto, every time openssl issues a security
fix.  There's a reason why most Linux distros forbid static linking of
libraries from different sources.

            regards, tom lane



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: How to Build Postgres in a Portable / Relocatable fashion?
Next
From: Siddharth Jain
Date:
Subject: Re: Question regarding how databases support atomicity