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 RbConfig::MAKEFILE_CONFIG['DLEXT'] instead of hardcoding extensions #173

Merged
merged 1 commit into from Dec 2, 2019

Conversation

eregon
Copy link
Contributor

@eregon eregon commented Nov 24, 2019

This allows sassc to work again on TruffleRuby on macOS: oracle/truffleruby#1819

cc @bolandrm @glebm

* Since libsass is meant to be used with FFI, RbConfig::CONFIG['SOEXT']
  would be better, but DLEXT is used as libsass is compiled by mkmf (sass#127).
* Use RbConfig::MAKEFILE_CONFIG['DLEXT'] instead of just RbConfig::CONFIG['DLEXT']
  so it's also correct on JRuby and not 'jar'. See
  https://github.com/rake-compiler/rake-compiler/blob/f808dd7a/lib/rake/extensiontask.rb#L41
* This lets Ruby implementations use another file extension than .so/.bundle
  for C extensions. For example, TruffleRuby 19.3.0 uses .dylib on macOS.
* Some OS also use a different file extension, such as HPUX which uses .sl.
@ahorek ahorek mentioned this pull request Dec 1, 2019
@eregon
Copy link
Contributor Author

eregon commented Dec 1, 2019

@bolandrm Could you merge this?

@bolandrm bolandrm merged commit 523746e into sass:master Dec 2, 2019
@eregon
Copy link
Contributor Author

eregon commented Dec 15, 2019

@bolandrm Thank you for merging!

If it's not too much trouble, would it be possible to make a release of sassc including this fix?
That way the current release of TruffleRuby (19.3.0) would work again with sassc on macOS.

@eregon eregon deleted the fix-dlext branch December 15, 2019 10:31
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request May 17, 2020
Update to ruby-sassc to 2.3.0.


- **2.3.0**
  - [Fix rake gem:native task](sass/sassc-ruby#196)
  - [disable lto flag for darwin + nix](sass/sassc-ruby#166)
  - [Sort input file list](sass/sassc-ruby#178)
  - [Set appropriate encoding for source_map](sass/sassc-ruby#152)
  - [allow passing functions directly](sass/sassc-ruby#162)
  - [always dispose data context](sass/sassc-ruby#161)
  - [Update libsass to 3.6.3](sass/sassc-ruby#164)
  - [Restore strip symbols](sass/sassc-ruby#184)
  - [Default --march-tune-native to false](sass/sassc-ruby#158)
  - [Fix compile issue on Mac OS X](sass/sassc-ruby#174)
  - [Test on TruffleRuby in TravisCI](sass/sassc-ruby#171)
  - [Use RbConfig::MAKEFILE_CONFIG['DLEXT'] instead of hardcoding extensions](sass/sassc-ruby#173)
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

3 participants