Build for Apple Silicon
Closed this issue · 2 comments
sfiera commented
Requires Xcode 12.0 Beta.
sfiera commented
Tried configuring it like so:
CPPFLAGS='-arch x86_64 -arch arm64 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' LDFLAGS='-arch x86_64 -arch arm64 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' ./configure
That got it almost there. The one error is:
Undefined symbols for architecture arm64:
"_png_init_filter_functions_neon", referenced from:
_png_read_filter_row in libpng.a(libpng.pngrutil.o)
which appears to be some ARM-specific code in libpng.