-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Update Solaris SPARC compile options. #39
Conversation
This solves part of knu#32 based almost entirely on the solution that @MarkGibbons provided. Since SPARC is technically a 64bit operating system by default, this seems reasonable. Signed-off-by: Scott Hain <shain@chef.io>
@scotthain, it's good as is. Thanks |
Thanks! |
@@ -4,6 +4,18 @@ | |||
$LDFLAGS << ' ' << `#{CONFIG['CC']} -print-file-name=libstdc++.a`.chomp | |||
else | |||
have_library('stdc++') | |||
# Do a little trickery here to enable C++ standard on Solaris 11 if found. | |||
# This also forces 64bit compilation mode. | |||
if (RbConfig::CONFIG['host_os'] =~ /solaris(!?2.11)/) |
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.
Oh wait, does host_os
optionally include a !
on Solaris 2.11? Is that what you mean by this regexp?
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.
that looks like some mistaken copypasta. (?!2.11)
would be a negative lookahead assertion but (!?2.11)
does match either "solaris!2.11"
or "solaris2.11"
i'm reasonably certain that should just be =~ /solaris2.11/)
paging @scotthain for confirmation tho.
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.
This may answer what we want to match against.
irb(main):001:0> RbConfig::CONFIG['host_os']
RbConfig::CONFIG['host_os']
=> "solaris2.11"
But I would make the regex =~ /solaris2\.11/
This solves part of #32 based almost entirely on the solution that @MarkGibbons provided. Since SPARC is technically a 64bit operating system by default, this seems reasonable.
Signed-off-by: Scott Hain shain@chef.io
@MarkGibbons I am happy to add an Authored by or amend commits for full attribution if you'd prefer!