OSDN Git Service

android: build with c++11 on android lollipop
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 22 Aug 2015 09:07:34 +0000 (11:07 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Mon, 20 Mar 2017 23:15:04 +0000 (00:15 +0100)
lollipop-x86 needs -std=c++11 (build with libcxx),
while kitkat-x86 cannot use -std=c++11

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
Android.common.mk

index 46e4e64..ec75b07 100644 (file)
@@ -105,7 +105,7 @@ endif
 endif
 
 LOCAL_CPPFLAGS += \
-       $(if $(filter true,$(MESA_LOLLIPOP_BUILD)),-D_USING_LIBCXX) \
+       $(if $(filter true,$(MESA_LOLLIPOP_BUILD)),-std=c++11) \
        -Wno-error=non-virtual-dtor \
        -Wno-non-virtual-dtor