Re: Reduce dependancies of postmaster (without --as-needed) - Mailing list pgsql-patches

From Tom Lane
Subject Re: Reduce dependancies of postmaster (without --as-needed)
Date
Msg-id 14743.1133215661@sss.pgh.pa.us
Whole thread Raw
In response to Re: Reduce dependancies of postmaster (without --as-needed)  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-patches
Martijn van Oosterhout <kleptog@svana.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

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Reduce dependancies of postmaster (without --as-needed)
Next
From: Larry Rosenman
Date:
Subject: Re: Reduce dependancies of postmaster (without --as-needed)