postgresql/postgresql.patch

changeset 300
382048971a24
child 699
da76d565ccd3
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/postgresql/postgresql.patch	Mon Nov 22 16:54:26 2010 +0100
     1.3 @@ -0,0 +1,72 @@
     1.4 +Index: src/Makefile.shlib
     1.5 +--- src/Makefile.shlib.orig	2010-07-06 05:55:33.000000000 +0200
     1.6 ++++ src/Makefile.shlib	2010-09-21 08:58:56.000000000 +0200
     1.7 +@@ -329,7 +329,7 @@
     1.8 + 
     1.9 + .PHONY: all-lib all-static-lib all-shared-lib
    1.10 + 
    1.11 +-all-lib: all-shared-lib
    1.12 ++all-lib:
    1.13 + ifdef soname
    1.14 + # no static library when building a dynamically loadable module
    1.15 + all-lib: all-static-lib
    1.16 +Index: src/backend/Makefile
    1.17 +--- src/backend/Makefile.orig	2010-07-05 20:54:37.000000000 +0200
    1.18 ++++ src/backend/Makefile	2010-09-21 08:58:56.000000000 +0200
    1.19 +@@ -41,7 +41,7 @@
    1.20 + LIBS := $(filter-out -lpgport, $(LIBS)) $(LDAP_LIBS_BE)
    1.21 + 
    1.22 + # The backend doesn't need everything that's in LIBS, however
    1.23 +-LIBS := $(filter-out -lz -lreadline -ledit -ltermcap -lncurses -lcurses, $(LIBS))
    1.24 ++LIBS := $(filter-out -lreadline -ledit -ltermcap -lncurses -lcurses, $(LIBS))
    1.25 + 
    1.26 + ##########################################################################
    1.27 + 
    1.28 +Index: src/include/port.h
    1.29 +--- src/include/port.h.orig	2010-05-15 16:44:13.000000000 +0200
    1.30 ++++ src/include/port.h	2010-09-21 08:58:56.000000000 +0200
    1.31 +@@ -374,7 +374,7 @@
    1.32 + extern int	getopt(int nargc, char *const * nargv, const char *ostr);
    1.33 + #endif
    1.34 + 
    1.35 +-#ifndef HAVE_ISINF
    1.36 ++#if !defined(HAVE_ISINF) && !defined(__FreeBSD__)
    1.37 + extern int	isinf(double x);
    1.38 + #endif
    1.39 + 
    1.40 +Index: src/makefiles/Makefile.freebsd
    1.41 +--- src/makefiles/Makefile.freebsd.orig	2010-07-05 20:54:38.000000000 +0200
    1.42 ++++ src/makefiles/Makefile.freebsd	2010-09-21 09:00:42.000000000 +0200
    1.43 +@@ -17,7 +17,7 @@
    1.44 + # Rule for building a shared library from a single .o file
    1.45 + %.so: %.o
    1.46 + ifdef ELF_SYSTEM
    1.47 +-	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $<
    1.48 ++	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $< $(SHLIB_LINK)
    1.49 + else
    1.50 + 	$(LD) $(LDREL) $(LDOUT) $<.obj -x $<
    1.51 + 	@echo building shared object $@
    1.52 +Index: src/makefiles/Makefile.linux
    1.53 +--- src/makefiles/Makefile.linux.orig	2010-07-05 20:54:38.000000000 +0200
    1.54 ++++ src/makefiles/Makefile.linux	2010-09-21 09:01:01.000000000 +0200
    1.55 +@@ -14,4 +14,4 @@
    1.56 + 
    1.57 + # Rule for building a shared library from a single .o file
    1.58 + %.so: %.o
    1.59 +-	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $<
    1.60 ++	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $< $(SHLIB_LINK)
    1.61 +Index: src/makefiles/Makefile.solaris
    1.62 +--- src/makefiles/Makefile.solaris.orig	2010-07-05 20:54:38.000000000 +0200
    1.63 ++++ src/makefiles/Makefile.solaris	2010-09-21 09:01:22.000000000 +0200
    1.64 +@@ -19,9 +19,9 @@
    1.65 + # Rule for building a shared library from a single .o file
    1.66 + %.so: %.o
    1.67 + ifeq ($(GCC), yes)
    1.68 +-	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $<
    1.69 ++	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $< $(SHLIB_LINK)
    1.70 + else
    1.71 +-	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -G -o $@ $<
    1.72 ++	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -G -o $@ $< $(SHLIB_LINK)
    1.73 + endif
    1.74 + 
    1.75 + sqlmansect = 5sql

mercurial