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

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

Reply via email to