Re: Support LDFLAGS_SL on most ports

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Oliver Jowett <oliver(at)opencloud(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Support LDFLAGS_SL on most ports
Date: 2004-10-07 13:00:05
Message-ID: 200410071500.05776.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Oliver Jowett wrote:
> This patch includes LDFLAGS_SL in SHLIB_LINK on most ports
> (previously it was only used on AIX and BeOS), and adds support for
> specifying it in configure.
>
> This lets you do something like:
>
> ./configure LDFLAGS=-static-libgcc LDFLAGS_SL=-static-libgcc
>
> to produce binaries that do not depend on libgcc_s.so at all.

Two comments: First, support for specifying it on configure requires you
to call AC_ARG_VAR ("require" as in it would prevent people from
shooting themselves in the foot). Please read up on it and add the
appropriate call. Second, the AC_MSG_NOTICE calls are there for some
variables because configure may modify them. But LDFLAGS_SL is just
taken as given, so there is no need to print a notice about it.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-10-07 14:33:51 Re: Two-phase commit
Previous Message Peter Eisentraut 2004-10-07 12:51:35 Re: pg_restore - added documentation