Browse Source

[master] use $(BOOST_MAPPED_FILE_CXXFLAG) for in-memory datasrc tests.

one of the tests directly uses the boost mapped_file_segment class, which can
result in compiler warnings on some platforms.
JINMEI Tatuya 12 years ago
parent
commit
45d2c5e07f
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/lib/datasrc/tests/memory/Makefile.am

+ 8 - 0
src/lib/datasrc/tests/memory/Makefile.am

@@ -8,6 +8,14 @@ AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_builddir)\"
 
 AM_CXXFLAGS = $(B10_CXXFLAGS)
 
+if USE_SHARED_MEMORY
+# See src/lib/util/Makefile.am.  We need this because some tests directly
+# use the Boost managed_mapped_file.  It's not ideal to deal with it as
+# a module-wide flag, but considering it's for tests and only for limited
+# environments, it would still be better to introduce more complicated setup.
+AM_CXXFLAGS += $(BOOST_MAPPED_FILE_CXXFLAG)
+endif
+
 if USE_STATIC_LINK
 AM_LDFLAGS = -static
 endif