-
Notifications
You must be signed in to change notification settings - Fork 38.6k
build: Fix capnp package build for Android
#25322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
From `configure --help`:
--with-external-capnp use the system capnp binary (or the one specified
with $CAPNP) instead of compiling a new one (useful
for cross-compiling)
ryanofsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK 8b8edc2. I'd be a little curious to know what causes the error and how --disable-shared fixes it, but these changes all look good
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsNo conflicts as of last run. |
+1. Can you explain why this is the best / correct fix?
the capnp docs? |
|
@hebasto can you follow up here? |
The build fails during the As we are not using the
It avoids libtools relink steps.
Yes. To be precise, I mean |
8b8edc2 build: Specify native binaries explicitly when building `capnp` package (Hennadii Stepanov) a413595 build: Fix `capnp` package build for Android (Hennadii Stepanov) Pull request description: On master (e3c08eb): ``` $ make -C depends capnp MULTIPROCESS=1 HOST=aarch64-linux-android ANDROID_SDK=$ANDROID_HOME ANDROID_NDK=$ANDROID_HOME/ndk/23.2.8568313 ANDROID_API_LEVEL=28 ANDROID_TOOLCHAIN_BIN=$ANDROID_HOME/ndk/23.2.8568313/toolchains/llvm/prebuilt/linux-x86_64/bin ... ld: error: unable to find library -lkj ... ``` This PR fixes this error, and also improves configuring according to the docs. ACKs for top commit: ryanofsky: Code review ACK 8b8edc2. I'd be a little curious to know what causes the error and how `--disable-shared` fixes it, but these changes all look good Tree-SHA512: 1b07b75f2a83932d8dc1f007e42a67d8327bd5fe4566f554dab4599e2a1e04b0144648790a1fd2ab1c295dba728586035aa0ebdbe5cf49df048ec87736895aaf
On master (e3c08eb):
This PR fixes this error, and also improves configuring according to the docs.