From: Per Bothner <per@bothner.com>
To: Panicz Maciej Godek <godek.maciek@gmail.com>
Cc: kawa@sourceware.org
Subject: Re: Building for Android
Date: Fri, 21 Oct 2022 11:00:18 -0700 [thread overview]
Message-ID: <87e4830c-b08f-f892-ac24-496725ab2dd7@bothner.com> (raw)
In-Reply-To: <CAMFYt2b7ckwgQZs1XVJZaWWa_pVn_fwGB-RFtB-=Hr8zeabFtQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 850 bytes --]
On 10/19/22 10:09, Panicz Maciej Godek wrote:
> So, I did check, and USE_SYMBOLIC is set to true.
Let's fix that first.
> I followed your instruction: I removed selected-java-source, make clean, and then I typed this:
>
> ./configure --prefix=$HOME/usr --without-awt --without-swt --without-sax2 --without-swing --with-java-source=8 --without-httpserver --disable-xquery --disable-echo2 --disable-jemacs --disable-brl --with-android=/data/data/com.termux/files/usr/share/java/android.jar
I figured it out: The --with-java-source=8 overrides the --with-android flag in terms of PreProcess arguments.
Please try the attached patch. It should force '+Android' as a PreProcess argument.
It seems to work even if you use --with-java-source, in the sense of setting USE_SYMBOLIC to false.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
[-- Attachment #2: mk-patch.txt --]
[-- Type: text/plain, Size: 925 bytes --]
diff --git a/Makefile.am b/Makefile.am
index 062b9b7e7..b77e4d0e3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -368,6 +368,11 @@ endif
JAVA_SOURCE = @JAVA_SOURCE@
+if WITH_ANDROID
+PREPROCESS_ANDROID = +Android
+else
+PREPROCESS_ANDROID = -Android
+endif
if WITH_HTTPSERVER
PREPROCESS_HTTPSERVER = +use:com.sun.net.httpserver
else
@@ -405,7 +410,7 @@ kawa/Version.class: kawa/Version.java
gnu/kawa/util/PreProcess.class: gnu/kawa/util/PreProcess.java
$(JAVAC) -d . $(JAVACFLAGS) $^
-JAVA_PREPROCESS_OPTIONS = @JAVA_SOURCE_SELECTOR@ $(PREPROCESS_HTTPSERVER) $(PREPROCESS_XML) $(PREPROCESS_JLINE3) $(PREPROCESS_LSP4J) $(PREPROCESS_AWT)
+JAVA_PREPROCESS_OPTIONS = @JAVA_SOURCE_SELECTOR@ $(PREPROCESS_HTTPSERVER) $(PREPROCESS_XML) $(PREPROCESS_JLINE3) $(PREPROCESS_LSP4J) $(PREPROCESS_AWT) $(PREPROCESS_ANDROID)
selected-java-source: Makefile $(srcdir)/patch-source-list
if test ! -e selected-java-source -o \
prev parent reply other threads:[~2022-10-21 18:00 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-18 14:57 Panicz Maciej Godek
2022-10-18 15:25 ` Per Bothner
2022-10-18 18:25 ` Panicz Maciej Godek
2022-10-19 9:15 ` Panicz Maciej Godek
2022-10-19 16:05 ` Per Bothner
2022-10-19 17:09 ` Panicz Maciej Godek
2022-10-20 5:35 ` Panicz Maciej Godek
2022-10-20 20:48 ` Panicz Maciej Godek
2022-10-21 5:14 ` Panicz Maciej Godek
2022-10-21 13:59 ` Panicz Maciej Godek
2022-10-21 18:11 ` Per Bothner
2022-10-21 19:19 ` Panicz Maciej Godek
2022-10-21 19:31 ` Per Bothner
2022-10-21 19:45 ` Panicz Maciej Godek
2022-10-21 20:13 ` Panicz Maciej Godek
2022-10-22 6:26 ` Per Bothner
2022-10-22 9:31 ` Panicz Maciej Godek
2022-10-22 12:08 ` Panicz Maciej Godek
2022-10-24 7:22 ` Panicz Maciej Godek
2022-10-24 10:48 ` Per Bothner
2022-10-24 12:01 ` Panicz Maciej Godek
2022-10-21 18:00 ` Per Bothner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87e4830c-b08f-f892-ac24-496725ab2dd7@bothner.com \
--to=per@bothner.com \
--cc=godek.maciek@gmail.com \
--cc=kawa@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).