diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-23 03:49:35 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-23 03:49:35 +0100 |
commit | 850d399c4f1568d3c6d013d7f4e2e371c0118bd6 (patch) | |
tree | 37fe91f80d4b072d27976558c05df3503c196e85 /dev-ruby/ffi-compiler/files | |
parent | 7b77dd2858b06e4a9367ca16d4c24aacb119b142 (diff) |
gentoo auto-resync : 23:10:2022 - 03:49:35
Diffstat (limited to 'dev-ruby/ffi-compiler/files')
-rw-r--r-- | dev-ruby/ffi-compiler/files/respect-cflags.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dev-ruby/ffi-compiler/files/respect-cflags.patch b/dev-ruby/ffi-compiler/files/respect-cflags.patch new file mode 100644 index 000000000000..3fe68f8211cb --- /dev/null +++ b/dev-ruby/ffi-compiler/files/respect-cflags.patch @@ -0,0 +1,17 @@ +diff --git a/lib/ffi-compiler/compile_task.rb b/lib/ffi-compiler/compile_task.rb +index 363c247..637fd3d 100644 +--- a/lib/ffi-compiler/compile_task.rb ++++ b/lib/ffi-compiler/compile_task.rb +@@ -26,9 +26,9 @@ module FFI + @libraries = [] + @headers = [] + @functions = [] +- @cflags = DEFAULT_CFLAGS.dup +- @cxxflags = DEFAULT_CFLAGS.dup +- @ldflags = DEFAULT_LDFLAGS.dup ++ @cflags = ENV['CFLAGS']&.split || DEFAULT_CFLAGS.dup ++ @cxxflags = ENV['CXXFLAGS']&.split || DEFAULT_CFLAGS.dup ++ @ldflags = ENV['LDFLAGS']&.split || DEFAULT_LDFLAGS.dup + @libs = [] + @platform = Platform.system + @exports = [] |