Skip to content
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

Merged
merged 2 commits into from
Dec 7, 2016
Merged

Use egcc on OpenBSD to fix libxml compilation #1543

merged 2 commits into from
Dec 7, 2016

Conversation

frenkel
Copy link
Contributor

@frenkel frenkel commented Oct 5, 2016

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.

@pgouv
Copy link

pgouv commented Dec 1, 2016

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

@frenkel
Copy link
Contributor Author

frenkel commented Dec 1, 2016

Yes, that's always when library versions change (which happens quite a lot between OpenBSD releases).

@pgouv
Copy link

pgouv commented Dec 1, 2016

So is there a solution to have both precompiled ?

@frenkel
Copy link
Contributor Author

frenkel commented Dec 1, 2016

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']
Copy link
Member

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?

Copy link
Contributor Author

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.

@knu
Copy link
Member

knu commented Dec 1, 2016

Out of curiosity, is clang not a choice on OpenBSD? I heard it started to bundle clang starting from 6.0.

@frenkel
Copy link
Contributor Author

frenkel commented Dec 1, 2016

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.

@knu knu merged commit a975c0d into sparklemotion:master Dec 7, 2016
@knu
Copy link
Member

knu commented Dec 7, 2016

Committed, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants