From 5d0db8327ae11df603396e2cccda3b0718f8fb31 Mon Sep 17 00:00:00 2001 From: Tran Khanh Duy <40482367+khanhduytran0@users.noreply.github.com> Date: Sat, 24 Oct 2020 17:02:26 +0700 Subject: [PATCH] LE_STANDALONE --- buildjdk.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildjdk.sh b/buildjdk.sh index ebaeb8b..ca2ac3c 100755 --- a/buildjdk.sh +++ b/buildjdk.sh @@ -5,7 +5,7 @@ export FREETYPE_DIR=`pwd`/freetype-2.6.2/build_android-${TARGET_SHORT} export CUPS_DIR=`pwd`/cups-2.2.4 # simplest to force headless:) -# export CPPFLAGS+=" -DHEADLESS=1" # -I$FREETYPE_DIR -I$CUPS_DIR +export CFLAGS+=" -DLE_STANDALONE=1" # -I$FREETYPE_DIR -I$CUPS_DIR export LDFLAGS+=" -L`pwd`/dummy_libs -Wl,--warn-unresolved-symbols" # It isn't good, but need make it build anyways @@ -29,6 +29,8 @@ rm -rf build # --with-extra-cflags="$CPPFLAGS" \ bash ./configure \ --disable-headful \ + --with-extra-cflags="$CFLAGS" \ + --with-extra-cxxflags="$CFLAGS" \ --with-extra-ldflags="$LDFLAGS" \ --enable-option-checking=fatal \ --openjdk-target=$TARGET \