summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/config/Make.rules.Darwin6
-rw-r--r--cpp/src/IceGrid/DescriptorHelper.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/cpp/config/Make.rules.Darwin b/cpp/config/Make.rules.Darwin
index e820bc049d2..0f17eecff61 100644
--- a/cpp/config/Make.rules.Darwin
+++ b/cpp/config/Make.rules.Darwin
@@ -11,10 +11,12 @@
# This file is included by Make.rules when uname is Darwin.
#
+OSX_TARGET_MIN_SDK_VERSION = 10.8
+
CXX = xcrun clang++
-CPPFLAGS += -pthread
-CXXFLAGS += -Wall -Werror
+CPPFLAGS += -pthread
+CXXFLAGS += -Wall -Werror -mmacosx-version-min=$(OSX_TARGET_MIN_SDK_VERSION)
ifeq ($(OPTIMIZE),yes)
#
diff --git a/cpp/src/IceGrid/DescriptorHelper.h b/cpp/src/IceGrid/DescriptorHelper.h
index e261d9ea5fa..85fa8927e31 100644
--- a/cpp/src/IceGrid/DescriptorHelper.h
+++ b/cpp/src/IceGrid/DescriptorHelper.h
@@ -264,7 +264,7 @@ private:
void init(const ServerDescriptorPtr&, const Resolver&, bool);
- const ServerInstanceDescriptor _def;
+ ServerInstanceDescriptor _def;
std::string _id;
ServerInstanceDescriptor _instance;