android: pass -std=c99 by default

Several modules expect a C99 compiler already.  It is also the default for
Makefile build.
This commit is contained in:
Chia-I Wu
2011-11-26 11:20:05 +08:00
parent 4d3d6f76ff
commit d2cd621086
8 changed files with 11 additions and 15 deletions

View File

@@ -21,6 +21,15 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
# use c99 compiler by default
ifeq ($(LOCAL_CC),)
ifeq ($(LOCAL_IS_HOST_MODULE),true)
LOCAL_CC := $(HOST_CC) -std=c99
else
LOCAL_CC := $(TARGET_CC) -std=c99
endif
endif
LOCAL_C_INCLUDES += \
$(MESA_TOP)/include