-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix crossbuild on CentOS #43189
Fix crossbuild on CentOS #43189
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
This change fixes the crossbuilding to work on CentOS. Clang frontend presets some of the compiler options based on the host OS and I guess that's causing the need to add the `--rpath-link`. The ranlib change to use llvm ranlib fixed a problem where cmake attempted to use ranlib from the rootfs for some reason.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -41,10 +41,9 @@ if(NOT WIN32 AND NOT CLR_CMAKE_TARGET_BROWSER) | |||||
|
||||||
locate_toolchain_exec(ar CMAKE_AR) | ||||||
locate_toolchain_exec(nm CMAKE_NM) | ||||||
locate_toolchain_exec(ranlib CMAKE_RANLIB) | ||||||
|
||||||
if(CMAKE_C_COMPILER_ID MATCHES "GNU") | ||||||
locate_toolchain_exec(ranlib CMAKE_RANLIB) | ||||||
else() | ||||||
if(NOT CMAKE_C_COMPILER_ID MATCHES "GNU") | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: we are not using
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the suggestion, I've replaced it with |
||||||
locate_toolchain_exec(link CMAKE_LINKER) | ||||||
endif() | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created a PR in arcade for the change in this file, but to not to have to wait for it to propagate, I am adding it here too.