Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Android - Support cross-compiling System.Native for Android #15912

Merged
merged 2 commits into from Feb 7, 2017
Merged

Android - Support cross-compiling System.Native for Android #15912

merged 2 commits into from Feb 7, 2017

Conversation

qmfrederik
Copy link

This is the last set of changes that is required to, together with all the Android-related PRs, get System.Native to cross-compile for Android.

  • Support for real time features (librt on most Linux systems) is part of the bionic system library, and doesn't exist as a separate library
  • Annoyingly, MNTOPT_RO is not defined, so it needs to be re-defined
  • gethostbyname and gethostaddr should be thread safe in Android > 3.0

@qmfrederik
Copy link
Author

Regarding the thread-safety of gethostbyname and gethostaddr, there isn't a lot of information out there (or I don't know where to look); the best I could find were these references from Mozilla:

Leaving that info here in case anyone wonders why they are considered thread safe on Android :)

@qmfrederik
Copy link
Author

fyi, I pushed some additional commits to #15882 and with that, all the native components of CoreFX now cross-compile for Android.

@stephentoub
Copy link
Member

@dotnet-bot test innerloop OpenSUSE13.2 Debug
@dotnet-bot test innerloop Debian8.4 Debug
@dotnet-bot test innerloop RHEL7.2 Debug
@dotnet-bot test innerloop Ubuntu16.10 Release
@dotnet-bot test innerloop Fedora23 Debug

@stephentoub
Copy link
Member

Thanks, @qmfrederik.

@stephentoub stephentoub merged commit b5b0a77 into dotnet:master Feb 7, 2017
@karelz karelz modified the milestone: 2.0.0 Feb 9, 2017
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…orefx#15912)

* Last batch of fixes to get compilation to run on Android
* Move the MNTOPT_RO definition inside HAVE_MNTINFO to avoid a unused identifier


Commit migrated from dotnet/corefx@b5b0a77
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants