Revision
87417
Author
blair@macports.org
Date
2011-11-20 15:05:37 -0800 (Sun, 20 Nov 2011)

Log Message

ice-cpp: do not compile with clang++, use c++ instead.  Closes #31069.

See this for ZeroC's lack of commitment in supporting clang:
http://www.zeroc.com/forums/bug-reports/4965-slice2cpp-output-does-not-compile-standards-conformant-compiler.html

Modified Paths

Diff

Modified: trunk/dports/devel/ice-cpp/Portfile (87416 => 87417)


--- trunk/dports/devel/ice-cpp/Portfile	2011-11-20 22:34:53 UTC (rev 87416)
+++ trunk/dports/devel/ice-cpp/Portfile	2011-11-20 23:05:37 UTC (rev 87417)
@@ -84,6 +84,12 @@
 
 use_configure   no
 
+# Work around invalid C++ code by compiling with g++ instead of clang.  See
+# http://www.zeroc.com/forums/bug-reports/4965-slice2cpp-output-does-not-compile-standards-conformant-compiler.html
+if {${configure.compiler} == "clang"} {
+        configure.compiler gcc-4.2
+}
+
 build {
         set cmd "cd ${build.dir} && make prefix='${prefix}' embedded_runpath_prefix='${prefix}' CC='${configure.cc}' CXX='${configure.cxx}' OPTIMIZE='yes' BZIP2_HOME='${prefix}' DB_HOME='${prefix}' EXPAT_HOME='${prefix}' OPENSSL_HOME='${prefix}' READLINE_HOME='${prefix}' USE_READLINE=yes MCPP_HOME='${prefix}' LDPLATFORMFLAGS= all && cd doc && make"
         ui_debug ${cmd}