aboutsummaryrefslogtreecommitdiffstats
path: root/community/ruby-sassc/use-system-libsass.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/ruby-sassc/use-system-libsass.patch')
-rw-r--r--community/ruby-sassc/use-system-libsass.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/community/ruby-sassc/use-system-libsass.patch b/community/ruby-sassc/use-system-libsass.patch
new file mode 100644
index 00000000000..578facb8d5f
--- /dev/null
+++ b/community/ruby-sassc/use-system-libsass.patch
@@ -0,0 +1,18 @@
+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"
+