Skip site navigation (1) Skip section navigation (2)

Re: Reduce dependancies of postmaster (without --as-needed)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Reduce dependancies of postmaster (without --as-needed)
Date: 2005-11-28 22:07:41
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
>> Regarding the restrictions for backend libs, consider the attached
>> patch. It just filters out anything readline related. Threading LIBS
>> are not in the LIBS variable at all.

> Sorry, forgot the attachment.

Applied in a modified format --- I see no reason why it's not safe for
AIX or Windows in this form.

			regards, tom lane

Index: Makefile
RCS file: /cvsroot/pgsql/src/backend/Makefile,v
retrieving revision 1.110
diff -c -r1.110 Makefile
*** Makefile	27 Oct 2005 20:45:29 -0000	1.110
--- Makefile	28 Nov 2005 22:05:04 -0000
*** 24,29 ****
--- 24,32 ----
  # We put libpgport into OBJS, so remove it from LIBS
  LIBS := $(patsubst -lpgport, , $(LIBS))
+ # The backend doesn't need everything that's in LIBS, however
+ LIBS := $(filter-out -lreadline -ledit -ltermcap -lncurses -lcurses, $(LIBS))
  ifeq ($(PORTNAME), qnx4)
  # This file crashes qnx4's wlink and is therefore not in
  # bootstrap/SUBSYS.o on that platform. (Wotta hack ... is it still

In response to

pgsql-patches by date

Next:From: Larry RosenmanDate: 2005-11-28 22:18:01
Subject: Re: Reduce dependancies of postmaster (without --as-needed)
Previous:From: Tom LaneDate: 2005-11-28 21:54:27
Subject: Re: Reduce dependancies of postmaster (without --as-needed)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group