File stdgnu++11.patch of Package clanlib
---
configure | 18 ++++++++++++++++--
configure.ac | 18 ++++++++++++++++--
2 files changed, 32 insertions(+), 4 deletions(-)
Index: ClanLib-2.3.6/configure
===================================================================
--- ClanLib-2.3.6.orig/configure
+++ ClanLib-2.3.6/configure
@@ -15140,7 +15140,14 @@ case $target in
*)
X11="yes"
WIN32="no"
- CXXFLAGS="$CXXFLAGS -std=c++0x"
+ case $host in
+ powerpc64le-*)
+ CXXFLAGS="$CXXFLAGS -std=gnu++11"
+ ;;
+ *)
+ CXXFLAGS="$CXXFLAGS -std=c++0x"
+ ;;
+ esac
;;
esac
@@ -15399,7 +15406,14 @@ if test "$use_sse2" != "no"; then
fi
if test "$WIN32" = "no"; then
- extra_CFLAGS_clanCore="$extra_CFLAGS_clanCore -pthread -std=c++0x"
+ case $host in
+ powerpc64le-*)
+ extra_CFLAGS_clanCore="$extra_CFLAGS_clanCore -pthread -std=gnu++11"
+ ;;
+ *)
+ extra_CFLAGS_clanCore="$extra_CFLAGS_clanCore -pthread -std=c++0x"
+ ;;
+ esac
else
extra_CFLAGS_clanCore="$extra_CFLAGS_clanCore -mthreads -std=c++0x"
fi
Index: ClanLib-2.3.6/configure.ac
===================================================================
--- ClanLib-2.3.6.orig/configure.ac
+++ ClanLib-2.3.6/configure.ac
@@ -119,7 +119,14 @@ case $target in
*)
X11="yes"
WIN32="no"
- CXXFLAGS="$CXXFLAGS -std=c++0x"
+ case $host in
+ powerpc64le-*)
+ CXXFLAGS="$CXXFLAGS -std=gnu++11"
+ ;;
+ *)
+ CXXFLAGS="$CXXFLAGS -std=c++0x"
+ ;;
+ esac
;;
esac
@@ -250,7 +257,14 @@ if test "$use_sse2" != "no"; then
fi
if test "$WIN32" = "no"; then
- extra_CFLAGS_clanCore="$extra_CFLAGS_clanCore -pthread -std=c++0x"
+ case $host in
+ powerpc64le-*)
+ extra_CFLAGS_clanCore="$extra_CFLAGS_clanCore -pthread -std=gnu++11"
+ ;;
+ *)
+ extra_CFLAGS_clanCore="$extra_CFLAGS_clanCore -pthread -std=c++0x"
+ ;;
+ esac
else
extra_CFLAGS_clanCore="$extra_CFLAGS_clanCore -mthreads -std=c++0x"
fi