Re: LDFLAGS vs. shared libraries

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: LDFLAGS vs. shared libraries
Date: 2004-08-17 15:58:48
Message-ID: 5111.1092758328@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Oliver Jowett <oliver(at)opencloud(dot)com> writes:
> I've changed Makefile.shlib to add all of LDFLAGS to SHLIB_LINK for now,
> but I'm assuming there's a reason that it was only using -L flags
> originally.

IIRC, on some platforms there are elements of LDFLAGS that will actively
break shared library linking.

> Is there a Right Way to pass extra options for
> shared-library linking?

LDFLAGS_SL is meant for this, I believe. Dunno whether you can set it
via configure, though ... that may be an oversight. In the meantime
you could hand-hack Makefile.global to set it.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2004-08-17 16:17:52 Re: tablespace and sequences?
Previous Message Tom Lane 2004-08-17 15:47:22 Re: tablespace and sequences?