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

Update Solaris SPARC compile options. #39

Merged
merged 1 commit into from
Mar 30, 2018

Conversation

scotthain
Copy link
Contributor

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!

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>
@MarkGibbons
Copy link

@scotthain, it's good as is. Thanks

@knu
Copy link
Owner

knu commented Mar 30, 2018

Thanks!

@knu knu merged commit a6b572d into knu:master Mar 30, 2018
@@ -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)/)
Copy link
Owner

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?

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.

Copy link

@MarkGibbons MarkGibbons Apr 20, 2019

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/

@scotthain scotthain deleted the shain/enable_solaris_64_bit branch April 2, 2018 16:39
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.

None yet

4 participants