android/boinc_zip: Linux throws a warning about lchmod and on android it doesn't exist at all. Add -DNO_LCHOWN to Makefile.am so it applies to both environments

This commit is contained in:
Rom Walton 2013-01-28 13:20:51 -05:00 committed by Oliver Bock
parent 715796ba6f
commit ea9bf2a0a5
2 changed files with 3 additions and 3 deletions

View File

@ -20,8 +20,8 @@ export PATH="$PATH:$TCBINARIES:$TCINCLUDES/bin"
export CC=arm-linux-androideabi-gcc export CC=arm-linux-androideabi-gcc
export CXX=arm-linux-androideabi-g++ export CXX=arm-linux-androideabi-g++
export LD=arm-linux-androideabi-ld export LD=arm-linux-androideabi-ld
export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -DNO_LCHOWN -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer" export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer"
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -DNO_LCHOWN -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer" export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer"
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog"
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT

View File

@ -6,7 +6,7 @@ include ../Makefile.incl
SUBDIRS = zip unzip SUBDIRS = zip unzip
AM_CPPFLAGS += -I$(top_srcdir)/zip -I$(top_srcdir) -I$(top_srcdir)/zip/zip -I$(top_srcdir)/zip/unzip -I$(top_srcdir)/lib -DUNIX -DDLL -DUSE_ZIPMAIN -DNO_OFF_T -DNO_CRYPT -DIZ_PWLEN=80 -Dinflate=inflate_boinc -Ddeflate=deflate_boinc -Dget_crc_table=get_crc_table_boinc -Dlongest_match=longest_match_boinc -Dinflate_codes=inflate_codes_boinc -Dcrc32=crc32_boinc AM_CPPFLAGS += -I$(top_srcdir)/zip -I$(top_srcdir) -I$(top_srcdir)/zip/zip -I$(top_srcdir)/zip/unzip -I$(top_srcdir)/lib -DUNIX -DDLL -DUSE_ZIPMAIN -DNO_OFF_T -DNO_CRYPT -DNO_LCHOWN -DIZ_PWLEN=80 -Dinflate=inflate_boinc -Ddeflate=deflate_boinc -Dget_crc_table=get_crc_table_boinc -Dlongest_match=longest_match_boinc -Dinflate_codes=inflate_codes_boinc -Dcrc32=crc32_boinc
if INSTALL_HEADERS if INSTALL_HEADERS
pkginclude_HEADERS = boinc_zip.h pkginclude_HEADERS = boinc_zip.h