shithub: openh264

Download patch

ref: f6126a0bb8a16845b749f01f4602753ee777db87
parent: 0fc2b6d14e851eda8042fb9eadf0e6f243a6aa07
author: Martin Storsjö <[email protected]>
date: Thu Feb 20 07:20:14 EST 2014

Don't add C++ specific compiler flags to CFLAGS, add them to CXXFLAGS

--- a/build/platform-android.mk
+++ b/build/platform-android.mk
@@ -38,7 +38,8 @@
 CXX = $(NDKROOT)/toolchains/$(GCCPATHPREFIX)-$(GCCVERSION)/prebuilt/$(HOSTOS)-$(HOSTARCH)/bin/$(GCCPREFIX)-g++
 CC = $(NDKROOT)/toolchains/$(GCCPATHPREFIX)-$(GCCVERSION)/prebuilt/$(HOSTOS)-$(HOSTARCH)/bin/$(GCCPREFIX)-gcc
 AR = $(NDKROOT)/toolchains/$(GCCPATHPREFIX)-$(GCCVERSION)/prebuilt/$(HOSTOS)-$(HOSTARCH)/bin/$(GCCPREFIX)-ar
-CFLAGS += -DLINUX -fpic --sysroot=$(SYSROOT) -fno-rtti -fno-exceptions
+CFLAGS += -DLINUX -fpic --sysroot=$(SYSROOT)
+CXXFLAGS += -fno-rtti -fno-exceptions
 LDFLAGS += --sysroot=$(SYSROOT) -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-soname,libwels.so
 
 STL_INCLUDES = \