From b0042accb2d7531c432bf453fb02b227c62afcf9 Mon Sep 17 00:00:00 2001 From: Young-il Choi Date: Sun, 12 May 2013 00:34:45 +0900 Subject: [PATCH] build: android support --- Makefile.in | 12 ++++++++---- configure | 3 +-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile.in b/Makefile.in index ffc9bec..9a09e46 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,11 +1,12 @@ VPATH=%VPATH% -UNAME=$(shell uname) - -ifeq ($(UNAME),Darwin) +ifeq ($(CFG_OSTYPE),apple-darwin) OSTYPE=darwin endif -ifeq ($(UNAME),Linux) +ifeq ($(CFG_OSTYPE),unknown-linux-gnu) + OSTYPE=linux +endif +ifeq ($(CFG_OSTYPE),linux-androideabi) OSTYPE=linux endif @@ -29,6 +30,9 @@ C_SRC= \ C_OBJS = $(patsubst %.c,%.o,$(C_SRC)) CFLAGS += -I$(VPATH)/src -Isrc/charset -I$(VPATH)/include -fPIC +ifeq ($(CFG_TARGET_TRIPLE), arm-linux-androideabi) + CFLAGS += -DWITHOUT_ICONV_FILTER +endif .PHONY: all all: libparserutils.dummy diff --git a/configure b/configure index ed6c06e..0183abc 100644 --- a/configure +++ b/configure @@ -1,5 +1,4 @@ #!/bin/bash SRCDIR="$(cd $(dirname $0) && pwd)" -sed "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile - +sed -e "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile