aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-11-28 22:06:39 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-11-28 22:06:39 +0000
commita2c43740d5665dc8e22869e6137985cd0d6bd541 (patch)
tree631d6cf48d11bc5276d18d52b6c769942c2ece34 /src
parentf1713078c5f969f9a4bc57e37a82489935e95a67 (diff)
downloadpostgresql-a2c43740d5665dc8e22869e6137985cd0d6bd541.tar.gz
postgresql-a2c43740d5665dc8e22869e6137985cd0d6bd541.zip
Don't link readline and supporting libraries into the backend.
After a proposal by Martijn van Oosterhout (not exactly his patch though).
Diffstat (limited to 'src')
-rw-r--r--src/backend/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/Makefile b/src/backend/Makefile
index f735039c115..ff353ef6159 100644
--- a/src/backend/Makefile
+++ b/src/backend/Makefile
@@ -4,7 +4,7 @@
#
# Copyright (c) 1994, Regents of the University of California
#
-# $PostgreSQL: pgsql/src/backend/Makefile,v 1.110 2005/10/27 20:45:29 tgl Exp $
+# $PostgreSQL: pgsql/src/backend/Makefile,v 1.111 2005/11/28 22:06:39 tgl Exp $
#
#-------------------------------------------------------------------------
@@ -24,6 +24,9 @@ OBJS := $(SUBSYSOBJS) $(top_builddir)/src/port/libpgport_srv.a
# 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