Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

refactor: crypto-ffi: statically link the runtime lib via Makefile.toml [WPB-8945] #563

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

istankovic
Copy link
Member

@istankovic istankovic commented May 31, 2024

On Android x86-64 we need to link the runtime lib statically because
the compiler fails to do so due to -nodefaultlibs being given by
default. This is not a problem on other Android platforms, though.

More details at mozilla/application-services#5436

@istankovic istankovic marked this pull request as ready for review May 31, 2024 13:19
@istankovic istankovic requested a review from a team as a code owner May 31, 2024 13:19
@vitorhugods
Copy link
Member

Please elaborate.

This was added as android x86 was crashing due to missing clang libs during runtime.

See:

@istankovic istankovic force-pushed the remove-explicit-link-clang-rt-builtins branch from 14ab6ef to 48dbcbe Compare June 5, 2024 09:04
@istankovic istankovic changed the title Remove explicit linking of clang rt builtins Statically link clang RT lib via Makefile.toml Jun 5, 2024
@istankovic
Copy link
Member Author

istankovic commented Jun 5, 2024

Please elaborate.

This was added as android x86 was crashing due to missing clang libs during runtime.

See:

* [fix: Use Mozilla's hack to fix Android on x86_64 [WPB-8945] #543](https://github.com/wireapp/core-crypto/pull/543)

@vitorhugods could you please try the updated branch here?
I've moved the linking logic to Makefile.toml, the result should be the same.

@istankovic istankovic changed the title Statically link clang RT lib via Makefile.toml refactor: crypto-ffi: statically link the runtime lib via Makefile.toml [WPB-8945] Jun 5, 2024
…ml [WPB-8945]

On Android x86-64 we need to link the runtime lib statically because
the compiler fails to do so due to -nodefaultlibs being given by
default. This is not a problem on other Android platforms, though.

More details at mozilla/application-services#5436
@istankovic istankovic force-pushed the remove-explicit-link-clang-rt-builtins branch from 48dbcbe to 0798f7c Compare June 5, 2024 15:23
@istankovic
Copy link
Member Author

@typfel said it worked for him.

@istankovic istankovic requested review from augustocdias and typfel June 5, 2024 15:24
@vitorhugods
Copy link
Member

@typfel said it worked for him.

I trust him more than I trust myself.

@istankovic istankovic merged commit cb5f5c7 into develop Jun 6, 2024
20 of 22 checks passed
@istankovic istankovic deleted the remove-explicit-link-clang-rt-builtins branch June 6, 2024 09:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants