[Android] fix build with C++11

Thomas Guillem git at videolan.org
Thu Apr 30 15:33:36 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Apr 30 15:32:42 2015 +0200| [20d4ca88cea5014239fb0ae9d9732e6199ad2f0b] | committer: Thomas Guillem

fix build with C++11

_cpp_static_assert should be defined by g++ -std=c++11

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=20d4ca88cea5014239fb0ae9d9732e6199ad2f0b
---

 compile-libvlc.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compile-libvlc.sh b/compile-libvlc.sh
index 7c67f89..fad8dfc 100755
--- a/compile-libvlc.sh
+++ b/compile-libvlc.sh
@@ -515,7 +515,7 @@ CFLAGS="$CFLAGS ${EXTRA_CFLAGS}" \
 CXXFLAGS="$CFLAGS" \
 LDFLAGS="$LDFLAGS" \
 CC="${CROSS_COMPILE}gcc --sysroot=${SYSROOT}" \
-CXX="${CROSS_COMPILE}g++ --sysroot=${SYSROOT}" \
+CXX="${CROSS_COMPILE}g++ --sysroot=${SYSROOT} -D__cpp_static_assert=200410" \
 NM="${CROSS_COMPILE}nm" \
 STRIP="${CROSS_COMPILE}strip" \
 RANLIB="${CROSS_COMPILE}ranlib" \



More information about the Android mailing list