[Android] compile-libvlc.sh: Pass various compiler flags to the C++ compiler as well

Hugo Beauzée-Luyssen git at videolan.org
Tue Oct 3 11:08:03 CEST 2017


vlc-android | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Oct  3 11:06:26 2017 +0200| [412621495b33896841e50161d9440ef08ac32ca1] | committer: Hugo Beauzée-Luyssen

compile-libvlc.sh: Pass various compiler flags to the C++ compiler as well

> https://code.videolan.org/videolan/vlc-android/commit/412621495b33896841e50161d9440ef08ac32ca1
---

 compile-libvlc.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/compile-libvlc.sh b/compile-libvlc.sh
index 93a5da0be..3c0fe48f3 100755
--- a/compile-libvlc.sh
+++ b/compile-libvlc.sh
@@ -367,11 +367,14 @@ VLC_CXXFLAGS="-std=gnu++11"
 if [ "$NO_OPTIM" = "1" ];
 then
      VLC_CFLAGS="${VLC_CFLAGS} -g -O0"
+     VLC_CXXFLAGS="${VLC_CXXFLAGS} -g -O0"
 else
      VLC_CFLAGS="${VLC_CFLAGS} -g -O2"
+     VLC_CXXFLAGS="${VLC_CXXFLAGS} -g -O2"
 fi
 
 VLC_CFLAGS="${VLC_CFLAGS} -fstrict-aliasing -funsafe-math-optimizations"
+VLC_CXXFLAGS="${VLC_CXXFLAGS} -fstrict-aliasing -funsafe-math-optimizations"
 
 # Setup CFLAGS per ABI
 if [ "${ANDROID_ABI}" = "armeabi-v7a" ] ; then
@@ -447,6 +450,7 @@ fi
 
 echo "EXTRA_CFLAGS:      ${EXTRA_CFLAGS}"
 echo "VLC_CFLAGS:        ${VLC_CFLAGS}"
+echo "VLC_CXXFLAGS:      ${VLC_CXXFLAGS}"
 
 cd vlc
 



More information about the Android mailing list