aboutsummaryrefslogtreecommitdiff
path: root/pgsql
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-02-24 10:03:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-02-24 10:03:19 +0200
commit564700ab7c96b671b0c08a37e9a0e50f4b2fc176 (patch)
treedd698330f5b455597998e84972b96a7d15b5a53d /pgsql
parent50b4de07844ca2a5781d7845115d7bd9e7c8f003 (diff)
C++11 support (pass --std ODB compiler option in build makefiles)
Diffstat (limited to 'pgsql')
-rw-r--r--pgsql/template/makefile5
-rw-r--r--pgsql/truncation/makefile5
-rw-r--r--pgsql/types/makefile5
3 files changed, 15 insertions, 0 deletions
diff --git a/pgsql/template/makefile b/pgsql/template/makefile
index 3682441..eb43706 100644
--- a/pgsql/template/makefile
+++ b/pgsql/template/makefile
@@ -94,7 +94,12 @@ $(call include,$(bld_root)/meta/vc9proj.make)
$(call include,$(bld_root)/meta/vc10proj.make)
$(call include,$(bld_root)/meta/automake.make)
+$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
+ifdef cxx_standard
+$(gen): odb_options += --std $(cxx_standard)
$(call include,$(odb_rules))
+endif
+
$(call include,$(bld_root)/cxx/cxx-d.make)
$(call include,$(bld_root)/cxx/cxx-o.make)
$(call include,$(bld_root)/cxx/o-e.make)
diff --git a/pgsql/truncation/makefile b/pgsql/truncation/makefile
index f6dfe18..d581f1f 100644
--- a/pgsql/truncation/makefile
+++ b/pgsql/truncation/makefile
@@ -95,7 +95,12 @@ $(call include,$(bld_root)/meta/vc9proj.make)
$(call include,$(bld_root)/meta/vc10proj.make)
$(call include,$(bld_root)/meta/automake.make)
+$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
+ifdef cxx_standard
+$(gen): odb_options += --std $(cxx_standard)
$(call include,$(odb_rules))
+endif
+
$(call include,$(bld_root)/cxx/cxx-d.make)
$(call include,$(bld_root)/cxx/cxx-o.make)
$(call include,$(bld_root)/cxx/o-e.make)
diff --git a/pgsql/types/makefile b/pgsql/types/makefile
index e2cff01..a144a80 100644
--- a/pgsql/types/makefile
+++ b/pgsql/types/makefile
@@ -97,7 +97,12 @@ $(call include,$(bld_root)/meta/vc9proj.make)
$(call include,$(bld_root)/meta/vc10proj.make)
$(call include,$(bld_root)/meta/automake.make)
+$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
+ifdef cxx_standard
+$(gen): odb_options += --std $(cxx_standard)
$(call include,$(odb_rules))
+endif
+
$(call include,$(bld_root)/cxx/cxx-d.make)
$(call include,$(bld_root)/cxx/cxx-o.make)
$(call include,$(bld_root)/cxx/o-e.make)