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: | 14743.1133215661@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Larry Rosenman | 2005-11-28 22:18:01 | Re: Reduce dependancies of postmaster (without --as-needed) |
Previous Message | Tom Lane | 2005-11-28 21:54:27 | Re: Reduce dependancies of postmaster (without --as-needed) |