Support LDFLAGS_SL on most ports - Mailing list pgsql-patches
From | Oliver Jowett |
---|---|
Subject | Support LDFLAGS_SL on most ports |
Date | |
Msg-id | 4153C110.70004@opencloud.com Whole thread Raw |
Responses |
Re: Support LDFLAGS_SL on most ports
(Oliver Jowett <oliver@opencloud.com>)
Re: Support LDFLAGS_SL on most ports (Peter Eisentraut <peter_e@gmx.net>) Re: Support LDFLAGS_SL on most ports (Bruce Momjian <pgman@candle.pha.pa.us>) |
List | pgsql-patches |
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
pgsql-patches by date: