Skip to content
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

Add support for arm-based Mac OS #20

Open
raducoravu opened this issue Jan 28, 2021 · 2 comments
Open

Add support for arm-based Mac OS #20

raducoravu opened this issue Jan 28, 2021 · 2 comments

Comments

@raducoravu
Copy link

Probably a new "libhunspell-darwin-arm.dylib" would be needed as JNA will shortly add support for arm-based darwin:
java-native-access/jna#1297

@hshafie
Copy link

hshafie commented Nov 9, 2021

Very interested too.

@raducoravu
Copy link
Author

Added some notes made by my colleague who compiled the Hunspell code to create a library for darwyn-arm for our product.

He says he used Xcode for compiling and started from these instructions listed here working on a Mac silicon:
https://github.com/hunspell/hunspell#compiling-on-osx-and-macos

The SDKROOT needs to be set to the Xcode SDK before running configure by doing this in the comand line:

   export SDKROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"

The flags for the configure command need to be changed as follows:

CFLAGS='-arch arm64 -g -O2' CXXFLAGS='-arch arm64 -g -O2' CPPFLAGS='-arch arm64 -g -O2' LDFLAGS='-arch arm64' bash configure --host=arm64-apple-darwin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants