pgsql: Split the LDFLAGS make variable into two parts: LDFLAGS is now

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Split the LDFLAGS make variable into two parts: LDFLAGS is now
Date: 2010-07-05 18:54:38
Message-ID: 20100705185438.E876F7541D4@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Split the LDFLAGS make variable into two parts: LDFLAGS is now used for
linking both executables and shared libraries, and we add on LDFLAGS_EX when
linking executables or LDFLAGS_SL when linking shared libraries. This
provides a significantly cleaner way of dealing with link-time switches than
the former behavior. Also, make sure that the various platform-specific
%.so: %.o rules incorporate LDFLAGS and LDFLAGS_SL; most of them missed that
before. (I did not add these variables for the platforms that invoke $(LD)
directly, however. It's not clear if we can do that safely, since for the
most part we assume these variables use CC command-line syntax.)

Per gripe from Aaron Swenson and subsequent investigation.

Modified Files:
--------------
pgsql:
configure (r1.682 -> r1.683)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/configure?r1=1.682&r2=1.683)
configure.in (r1.630 -> r1.631)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/configure.in?r1=1.630&r2=1.631)
pgsql/doc/src/sgml:
installation.sgml (r1.347 -> r1.348)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/installation.sgml?r1=1.347&r2=1.348)
pgsql/doc/src/sgml/ref:
pg_config-ref.sgml (r1.29 -> r1.30)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/ref/pg_config-ref.sgml?r1=1.29&r2=1.30)
pgsql/src:
Makefile.global.in (r1.262 -> r1.263)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/Makefile.global.in?r1=1.262&r2=1.263)
Makefile.shlib (r1.123 -> r1.124)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/Makefile.shlib?r1=1.123&r2=1.124)
pgsql/src/backend:
Makefile (r1.144 -> r1.145)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/Makefile?r1=1.144&r2=1.145)
pgsql/src/backend/port:
Makefile (r1.27 -> r1.28)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/port/Makefile?r1=1.27&r2=1.28)
pgsql/src/bin/initdb:
Makefile (r1.60 -> r1.61)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/initdb/Makefile?r1=1.60&r2=1.61)
pgsql/src/bin/pg_config:
Makefile (r1.24 -> r1.25)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_config/Makefile?r1=1.24&r2=1.25)
pg_config.c (r1.32 -> r1.33)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_config/pg_config.c?r1=1.32&r2=1.33)
pgsql/src/bin/pg_controldata:
Makefile (r1.21 -> r1.22)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_controldata/Makefile?r1=1.21&r2=1.22)
pgsql/src/bin/pg_ctl:
Makefile (r1.29 -> r1.30)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_ctl/Makefile?r1=1.29&r2=1.30)
pgsql/src/bin/pg_dump:
Makefile (r1.70 -> r1.71)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_dump/Makefile?r1=1.70&r2=1.71)
pgsql/src/bin/pg_resetxlog:
Makefile (r1.23 -> r1.24)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_resetxlog/Makefile?r1=1.23&r2=1.24)
pgsql/src/bin/psql:
Makefile (r1.69 -> r1.70)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/Makefile?r1=1.69&r2=1.70)
pgsql/src/bin/scripts:
Makefile (r1.45 -> r1.46)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/scripts/Makefile?r1=1.45&r2=1.46)
pgsql/src/interfaces/ecpg/preproc:
Makefile (r1.149 -> r1.150)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/preproc/Makefile?r1=1.149&r2=1.150)
pgsql/src/interfaces/ecpg/test:
Makefile (r1.78 -> r1.79)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/test/Makefile?r1=1.78&r2=1.79)
Makefile.regress (r1.8 -> r1.9)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/test/Makefile.regress?r1=1.8&r2=1.9)
pgsql/src/makefiles:
Makefile.aix (r1.29 -> r1.30)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.aix?r1=1.29&r2=1.30)
Makefile.bsdi (r1.21 -> r1.22)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.bsdi?r1=1.21&r2=1.22)
Makefile.cygwin (r1.13 -> r1.14)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.cygwin?r1=1.13&r2=1.14)
Makefile.darwin (r1.11 -> r1.12)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.darwin?r1=1.11&r2=1.12)
Makefile.dgux (r1.3 -> r1.4)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.dgux?r1=1.3&r2=1.4)
Makefile.freebsd (r1.25 -> r1.26)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.freebsd?r1=1.25&r2=1.26)
Makefile.hpux (r1.31 -> r1.32)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.hpux?r1=1.31&r2=1.32)
Makefile.irix (r1.6 -> r1.7)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.irix?r1=1.6&r2=1.7)
Makefile.linux (r1.25 -> r1.26)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.linux?r1=1.25&r2=1.26)
Makefile.netbsd (r1.15 -> r1.16)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.netbsd?r1=1.15&r2=1.16)
Makefile.openbsd (r1.15 -> r1.16)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.openbsd?r1=1.15&r2=1.16)
Makefile.osf (r1.8 -> r1.9)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.osf?r1=1.8&r2=1.9)
Makefile.sco (r1.12 -> r1.13)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.sco?r1=1.12&r2=1.13)
Makefile.solaris (r1.14 -> r1.15)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.solaris?r1=1.14&r2=1.15)
Makefile.sunos4 (r1.7 -> r1.8)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.sunos4?r1=1.7&r2=1.8)
Makefile.svr4 (r1.5 -> r1.6)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.svr4?r1=1.5&r2=1.6)
Makefile.ultrix4 (r1.7 -> r1.8)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.ultrix4?r1=1.7&r2=1.8)
Makefile.univel (r1.5 -> r1.6)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.univel?r1=1.5&r2=1.6)
Makefile.unixware (r1.23 -> r1.24)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.unixware?r1=1.23&r2=1.24)
Makefile.win32 (r1.15 -> r1.16)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/Makefile.win32?r1=1.15&r2=1.16)
pgxs.mk (r1.19 -> r1.20)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/pgxs.mk?r1=1.19&r2=1.20)
pgsql/src/template:
cygwin (r1.7 -> r1.8)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/template/cygwin?r1=1.7&r2=1.8)
win32 (r1.3 -> r1.4)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/template/win32?r1=1.3&r2=1.4)
pgsql/src/test/regress:
GNUmakefile (r1.82 -> r1.83)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/GNUmakefile?r1=1.82&r2=1.83)
pgsql/src/test/thread:
Makefile (r1.6 -> r1.7)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/thread/Makefile?r1=1.6&r2=1.7)
pgsql/src/timezone:
Makefile (r1.32 -> r1.33)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/timezone/Makefile?r1=1.32&r2=1.33)
pgsql/src/tools/findoidjoins:
Makefile (r1.7 -> r1.8)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/tools/findoidjoins/Makefile?r1=1.7&r2=1.8)
pgsql/src/tools/fsync:
Makefile (r1.8 -> r1.9)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/tools/fsync/Makefile?r1=1.8&r2=1.9)
pgsql/src/tools/ifaddrs:
Makefile (r1.2 -> r1.3)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/tools/ifaddrs/Makefile?r1=1.2&r2=1.3)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-07-05 23:15:56 pgsql: Fix a few single-file (MODULES, not MODULE_big) contrib makefiles
Previous Message User Andrewd 2010-07-05 16:28:14 pgbuildfarm - client-code: Accomodate oddities in at least some versions