Re: Support LDFLAGS_SL on most ports

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Support LDFLAGS_SL on most ports
Date: 2004-10-15 05:09:56
Message-ID: 200410150509.i9F59uh02267@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


I have applied your newest version of this patch, which I have attached.
I also added code for Win32 and Cygwin.

Thanks.

---------------------------------------------------------------------------

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.
>
> I haven't touched the win32/cygwin section of Makefile.shlib as I'm not
> sure exactly where it'd be useful to add LDFLAGS_SL.
>
> -O

> Index: src/Makefile.global.in
> ===================================================================
> RCS file: /projects/cvsroot/pgsql-server/src/Makefile.global.in,v
> retrieving revision 1.195
> diff -u -c -r1.195 Makefile.global.in
> *** src/Makefile.global.in 18 Sep 2004 13:28:54 -0000 1.195
> --- src/Makefile.global.in 24 Sep 2004 06:23:11 -0000
> ***************
> *** 199,204 ****
> --- 199,205 ----
> with_gnu_ld = @with_gnu_ld@
> ld_R_works = @ld_R_works@
> LDFLAGS = @LDFLAGS@
> + LDFLAGS_SL = @LDFLAGS_SL@
> LDREL = -r
> LDOUT = -o
> RANLIB = @RANLIB@
> Index: src/Makefile.shlib
> ===================================================================
> RCS file: /projects/cvsroot/pgsql-server/src/Makefile.shlib,v
> retrieving revision 1.78
> diff -u -c -r1.78 Makefile.shlib
> *** src/Makefile.shlib 2 Sep 2004 23:06:43 -0000 1.78
> --- src/Makefile.shlib 24 Sep 2004 06:23:12 -0000
> ***************
> *** 276,282 ****
>
> # Normal case
> $(shlib): $(OBJS)
> ! $(LINK.shared) $(OBJS) $(SHLIB_LINK) -o $@
> # If we're using major and minor versions, then make a symlink to major-version-only.
> ifneq ($(shlib), $(shlib_major))
> rm -f $(shlib_major)
> --- 276,282 ----
>
> # Normal case
> $(shlib): $(OBJS)
> ! $(LINK.shared) $(LDFLAGS_SL) $(OBJS) $(SHLIB_LINK) -o $@
> # If we're using major and minor versions, then make a symlink to major-version-only.
> ifneq ($(shlib), $(shlib_major))
> rm -f $(shlib_major)
> Index: configure.in
> ===================================================================
> RCS file: /projects/cvsroot/pgsql-server/configure.in,v
> retrieving revision 1.377
> diff -u -c -r1.377 configure.in
> *** configure.in 17 Sep 2004 22:31:59 -0000 1.377
> --- configure.in 24 Sep 2004 06:23:12 -0000
> ***************
> *** 531,536 ****
> --- 531,538 ----
>
> AC_MSG_NOTICE([using CPPFLAGS=$CPPFLAGS])
> AC_MSG_NOTICE([using LDFLAGS=$LDFLAGS])
> + AC_MSG_NOTICE([using LDFLAGS_SL=$LDFLAGS_SL])
> + AC_SUBST(LDFLAGS_SL)
>
>
> AC_PROG_AWK

>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 4.8 KB

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Marek Lewczuk 2004-10-15 07:36:48 postgresql 8.0 with cygwin - success
Previous Message Bruce Momjian 2004-10-15 05:02:32 Re: psql \set case sensitive for boolean (OFF/off)