Package: postgresql-9.1
Version: 9.1.3-2
Severity: minor
Tags: patch

The -DLINUX_OOM_ADJ assigment should be in CPPFLAGS instead of CFLAGS.
Suggested patch:

--- debian/rules        2012-03-01 07:26:12 +0000
+++ debian/rules        2012-04-10 18:35:43 +0000
@@ -12,7 +12,7 @@
 # When protecting the postmaster with oom_adj=-17, allow the OOM killer to slay
 # the backends 
(http://archives.postgresql.org/pgsql-hackers/2010-01/msg00170.php)
 ifeq ($(shell uname -s),Linux)
-CFLAGS+= -DLINUX_OOM_ADJ=0
+CPPFLAGS+= -DLINUX_OOM_ADJ=0
 endif
 
 ifneq ($(findstring $(DEB_BUILD_ARCH), sparc alpha),)
@@ -42,6 +42,7 @@
   --with-gnu-ld \
   --with-pgport=5432 \
   --with-system-tzdata=/usr/share/zoneinfo \
+  CPPFLAGS='$(CPPFLAGS)' \
   CFLAGS='$(CFLAGS)' \
   LDFLAGS='$(LDFLAGS)'
 



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to