From 97813d5b97886b05ff1bb8428642815d9c03391f Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 28 Oct 2014 20:41:54 +0100 Subject: C++11 DynamicLibrary ++11 suffix should be applied only to libstdc++ --- cpp/src/Ice/DynamicLibrary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/Ice/DynamicLibrary.cpp') diff --git a/cpp/src/Ice/DynamicLibrary.cpp b/cpp/src/Ice/DynamicLibrary.cpp index 9a5d6dd7a9e..b18175cc24a 100644 --- a/cpp/src/Ice/DynamicLibrary.cpp +++ b/cpp/src/Ice/DynamicLibrary.cpp @@ -89,7 +89,7 @@ IceInternal::DynamicLibrary::loadEntryPoint(const string& entryPoint, bool useIc if(comma == string::npos) { libName = libSpec; -# if defined(ICE_CPP11) && !defined(__APPLE__) +# if defined(ICE_CPP11) && defined(__GLIBCXX__) libName += "++11"; # endif if(useIceVersion) @@ -119,7 +119,7 @@ IceInternal::DynamicLibrary::loadEntryPoint(const string& entryPoint, bool useIc return 0; } libName = libSpec.substr(0, comma); -# ifdef ICE_CPP11 +# ifdef ICE_CPP11 && defined(__GLIBCXX__) libName += "++11"; # endif version = libSpec.substr(comma + 1); -- cgit v1.2.3