1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 09:15:30 +03:00
aports/testing/ruby-sassc/use-system-libsass.patch
2021-06-29 22:16:01 +02:00

18 lines
529 B
Diff

Use system-provided libsass.
--- a/lib/sassc/native.rb
+++ b/lib/sassc/native.rb
@@ -6,12 +6,7 @@
module Native
extend FFI::Library
- dl_ext = RbConfig::MAKEFILE_CONFIG['DLEXT']
- begin
- ffi_lib File.expand_path("libsass.#{dl_ext}", __dir__)
- rescue LoadError # Some non-rvm environments don't copy a shared object over to lib/sassc
- ffi_lib File.expand_path("libsass.#{dl_ext}", "#{__dir__}/../../ext")
- end
+ ffi_lib "/usr/lib/libsass.so.1"
require_relative "native/sass_value"