-
-
Notifications
You must be signed in to change notification settings - Fork 904
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
Use egcc on OpenBSD to fix libxml compilation #1543
Conversation
This is a good fix. However I precompiled with CC=egcc in openbsd 5.9 but in 6.0 it can't be loaded, it needs to be recompiled |
Yes, that's always when library versions change (which happens quite a lot between OpenBSD releases). |
So is there a solution to have both precompiled ? |
No, when you run OpenBSD 6.0 you don't know what 6.1 will contain, so you can only compile it for your current version. Same problem is on Mac OS X when Apple decides to update some important library dependency. |
@@ -387,7 +391,16 @@ def using_system_libraries? | |||
do_clean | |||
end | |||
|
|||
RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC'] |
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.
What about leaving this unchanged and put if openbsd? && !ENV['CC'] ... ENV['CC'] = find_executable 'egcc' end
above it so you could still override CC
?
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.
Good point! I've changed it.
Out of curiosity, is clang not a choice on OpenBSD? I heard it started to bundle clang starting from 6.0. |
Well, they imported in CVS after the 6.0 release, but I believe they won't make it a supported choice in 6.1. Clang can be installed on amd64 using packages in 5.9 and 6.0 already though. |
Committed, thanks. |
First PR for OpenBSD support. #1515 it was suggested that I should also create a PR for the documentation. I'll submit that to the other repo in a few minutes.