Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a2c4374

Browse files
committed
Don't link readline and supporting libraries into the backend.
After a proposal by Martijn van Oosterhout (not exactly his patch though).
1 parent f171307 commit a2c4374

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Copyright (c) 1994, Regents of the University of California
66
#
7-
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.110 2005/10/27 20:45:29 tgl Exp $
7+
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.111 2005/11/28 22:06:39 tgl Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -24,6 +24,9 @@ OBJS := $(SUBSYSOBJS) $(top_builddir)/src/port/libpgport_srv.a
2424
# We put libpgport into OBJS, so remove it from LIBS
2525
LIBS := $(patsubst -lpgport, , $(LIBS))
2626

27+
# The backend doesn't need everything that's in LIBS, however
28+
LIBS := $(filter-out -lreadline -ledit -ltermcap -lncurses -lcurses, $(LIBS))
29+
2730
ifeq ($(PORTNAME), qnx4)
2831
# This file crashes qnx4's wlink and is therefore not in
2932
# bootstrap/SUBSYS.o on that platform. (Wotta hack ... is it still

0 commit comments

Comments
 (0)