Closed danipen closed 1 year ago
Compile oniguruma targeting both x86_64 and arm64
autoreconf -vfi (* case: configure script is not found.) ./configure CC="gcc -arch x86_64 -arch arm64" make make install
Compile onigwrap in the following way:
clang -target x86_64-apple-macos10.12 -dynamiclib -L. -lonig -o x86_libonigwrap.dylib onigwrap.c clang -target arm64-apple-macos11 -dynamiclib -L. -lonig -o arm_libonigwrap.dylib onigwrap.c lipo -create -output libonigwrap.dylib x86_libonigwrap.dylib arm_libonigwrap.dylib
$ lipo -archs libonigwrap.a x86_64 arm64
Compile oniguruma targeting both x86_64 and arm64
Compile onigwrap in the following way: