Closed cavivie closed 3 months ago
The key error is:
configure:3107: x86_64-apple-darwin20.4-clang -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-2 -fno-omit-frame-pointer --target=x86_64-apple-darwin -stdlib=libc++ -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-2 -fno-omit-frame-pointer --target=x86_64-apple-darwin -stdlib=libc++ -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-2 -fno-omit-frame-pointer --target=x86_64-apple-darwin -stdlib=libc++ conftest.c >&5
/usr/bin/ld: unrecognized option '-dynamic'
/usr/bin/ld: use the --help option for usage information
--target=x86_64-apple-darwin
=> --target=x86_64-apple-darwin20.4
--target=x86_64-apple-darwin
=>--target=x86_64-apple-darwin20.4
Thanks, it works with this.
How does generating compiler parameters like cc-rs work with darwin version
Current: The clang wrapper aarch64-apple-darwin20.4-clang works with the target flag aarch64-apple-darwin20.4. The clang wrapper arm64-apple-darwin20.4-clang works with the target flag arm64-apple-darwin20.4. The clang wrapper aarch64-apple-darwin20.4-clang does not work with the target flag arm64-apple-darwin20.4. The clang wrapper arm64-apple-darwin20.4-clang does not work with the target flag aarch64-apple-darwin20.4.
Hope that: The clang wrapper aarch64-apple-darwin20.4-clang can work with the target flag arm64-apple-darwin20.4. The clang wrapper arm64-apple-darwin20.4-clang can work with the target flag aarch64-apple-darwin20.4. (maybe?)
I think if this detail is handled by the clang wrapper, there is no need to modify third-party libraries and build tools, making the build more efficient, because Apple clang does not consider itself to be aarch64 but arm64.