Re: Support LDFLAGS_SL on most ports - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: Support LDFLAGS_SL on most ports
Date
Msg-id 200410071500.05776.peter_e@gmx.net
Whole thread Raw
In response to Support LDFLAGS_SL on most ports  (Oliver Jowett <oliver@opencloud.com>)
Responses Re: Support LDFLAGS_SL on most ports
List 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/


pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pg_restore - added documentation
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] HP-UX PA-RISC/Itanium 64-bit Patch and HP-UX