|
@@ -8,6 +8,18 @@ AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_builddir)\"
|
|
|
# the limit of file name path size.
|
|
|
AM_CPPFLAGS += -DTEST_DATA_TOPBUILDDIR=\"$(abs_top_builddir)\"
|
|
|
AM_CXXFLAGS = $(B10_CXXFLAGS)
|
|
|
+# If we use the shared-memory support, corresponding Boost library may
|
|
|
+# cause build failures especially if it's strict about warnings. We've
|
|
|
+# detected it in ./configure and set BOOST_MAPPED_FILE_CXXFLAG to be more
|
|
|
+# lenient as necessary (specifically, when set it'd usually supporess -Werror).
|
|
|
+# This is a module wide setting, and has a possible bad side effect of hiding
|
|
|
+# issues in other files, but making it per-file seems to be too costly.
|
|
|
+# So we begin with the wider setting. If the side effect turns out to be too
|
|
|
+# harmful, we'll consider other measure, e.g, moving the related files into
|
|
|
+# a subdirectory.
|
|
|
+if USE_SHARED_MEMORY
|
|
|
+AM_CXXFLAGS += $(BOOST_MAPPED_FILE_CXXFLAG)
|
|
|
+endif
|
|
|
|
|
|
if USE_STATIC_LINK
|
|
|
AM_LDFLAGS = -static
|
|
@@ -34,7 +46,9 @@ run_unittests_SOURCES += lru_list_unittest.cc
|
|
|
run_unittests_SOURCES += interprocess_sync_file_unittest.cc
|
|
|
run_unittests_SOURCES += interprocess_sync_null_unittest.cc
|
|
|
run_unittests_SOURCES += memory_segment_local_unittest.cc
|
|
|
+if USE_SHARED_MEMORY
|
|
|
run_unittests_SOURCES += memory_segment_mapped_unittest.cc
|
|
|
+endif
|
|
|
run_unittests_SOURCES += memory_segment_common_unittest.h
|
|
|
run_unittests_SOURCES += memory_segment_common_unittest.cc
|
|
|
run_unittests_SOURCES += qid_gen_unittest.cc
|