postgresql.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. Remove lorder(1) and tsort(1) stuff, because it is not needed on modern
  2. systems and makes problems under some platforms (e.g. older Linux).
  3. --- src/Makefile.global.in.orig Thu Sep 5 00:54:18 2002
  4. +++ src/Makefile.global.in Tue Jul 1 17:17:25 2003
  5. @@ -193,7 +193,7 @@
  6. LDREL = -r
  7. LDOUT = -o
  8. RANLIB = @RANLIB@
  9. -LORDER = @LORDER@
  10. +MK_NO_LORDER= true
  11. X = @EXEEXT@
  12. # Perl
  13. --- src/makefiles/Makefile.freebsd.orig Wed Aug 29 21:14:40 2001
  14. +++ src/makefiles/Makefile.freebsd Tue Jul 1 17:23:00 2003
  15. @@ -16,7 +16,7 @@
  16. $(LD) $(LDREL) $(LDOUT) $<.obj -x $<
  17. @echo building shared object $@
  18. @rm -f $@.pic
  19. - @${AR} cq $@.pic `lorder $<.obj | tsort`
  20. + @${AR} cq $@.pic
  21. ${RANLIB} $@.pic
  22. @rm -f $@
  23. $(LD) -x -Bshareable -Bforcearchive -o $@ $@.pic
  24. --- src/makefiles/Makefile.openbsd.orig Wed Aug 29 21:14:40 2001
  25. +++ src/makefiles/Makefile.openbsd Tue Jul 1 17:23:12 2003
  26. @@ -16,7 +16,7 @@
  27. $(LD) $(LDREL) $(LDOUT) $<.obj -x $<
  28. @echo building shared object $@
  29. @rm -f $@.pic
  30. - @${AR} cq $@.pic `lorder $<.obj | tsort`
  31. + @${AR} cq $@.pic
  32. ${RANLIB} $@.pic
  33. @rm -f $@
  34. $(LD) -x -Bshareable -Bforcearchive \
  35. --- src/makefiles/Makefile.netbsd.orig Wed Aug 29 21:14:40 2001
  36. +++ src/makefiles/Makefile.netbsd Tue Jul 1 17:23:39 2003
  37. @@ -18,7 +18,7 @@
  38. $(LD) $(LDREL) $(LDOUT) $<.obj -x $<
  39. @echo building shared object $@
  40. @rm -f $@.pic
  41. - @${AR} cq $@.pic `lorder $<.obj | tsort`
  42. + @${AR} cq $@.pic
  43. ${RANLIB} $@.pic
  44. @rm -f $@
  45. $(LD) -x -Bshareable -Bforcearchive \
  46. Index: src/template/freebsd
  47. --- src/template/freebsd.orig 2004-12-02 19:11:40.000000000 +0100
  48. +++ src/template/freebsd 2005-02-16 17:09:09.617038264 +0100
  49. @@ -1,3 +1,3 @@
  50. case $host_cpu in
  51. - alpha*) CFLAGS="-O";; # alpha has problems with -O2
  52. + alpha*) CFLAGS=`echo "x$CFLAGS" | sed -e 's;^x;;' -e 's;-O2;-O;'`;; # alpha has problems with -O2
  53. esac
  54. Index: src/template/linux
  55. --- src/template/linux.orig 2004-12-02 19:11:40.000000000 +0100
  56. +++ src/template/linux 2005-02-16 17:08:13.160599508 +0100
  57. @@ -1,2 +1,2 @@
  58. # Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
  59. -CPPFLAGS="-D_GNU_SOURCE"
  60. +CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"