HunspellJNA icon indicating copy to clipboard operation
HunspellJNA copied to clipboard

Add support for arm-based Mac OS

Open raducoravu opened this issue 5 years ago • 2 comments

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

raducoravu avatar Jan 28 '21 15:01 raducoravu

Very interested too.

hshafie avatar Nov 09 '21 09:11 hshafie

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

raducoravu avatar Nov 09 '21 09:11 raducoravu