On Mon, Nov 28, 2005 at 09:01:11PM +0100, Martijn van Oosterhout wrote: > 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. -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a > tool for doing 5% of the work and then sitting around waiting for someone > else to do the other 95% so you can sue them.
Index: src/backend/Makefile =================================================================== RCS file: /projects/cvsroot/pgsql/src/backend/Makefile,v retrieving revision 1.110 diff -u -r1.110 Makefile --- src/backend/Makefile 27 Oct 2005 20:45:29 -0000 1.110 +++ src/backend/Makefile 27 Nov 2005 19:40:09 -0000 @@ -40,8 +40,11 @@ ifneq ($(PORTNAME), win32) ifneq ($(PORTNAME), aix) +# Filter out libraries we don't need +BACKEND_LIBS=$(filter-out -ltermcap -lncurses -lcurses -ledit -lreadline, $(LIBS)) + postgres: $(OBJS) - $(CC) $(CFLAGS) $(LDFLAGS) $(export_dynamic) $^ $(LIBS) -o $@ + $(CC) $(CFLAGS) $(LDFLAGS) $(export_dynamic) $^ $(BACKEND_LIBS) -o $@ endif endif
pgpiPgHFwf8yY.pgp
Description: PGP signature