diff options
author | Lars Kanis <lars@greiz-reinsdorf.de> | 2020-12-18 20:52:35 +0100 |
---|---|---|
committer | Lars Kanis <lars@greiz-reinsdorf.de> | 2020-12-18 20:52:35 +0100 |
commit | f905616d372f407bb6aef14d3ea574165050e77b (patch) | |
tree | bda0628d938198de227ae8e290237c05c713551d | |
parent | 906114d990d6f72b09dd4726639d3de99f2cb6f7 (diff) | |
parent | 8dd17c79413b10e5a223f3cc34a1c5f94a9f6576 (diff) | |
download | ffi-f905616d372f407bb6aef14d3ea574165050e77b.tar.gz |
Merge branch 'master' of github.com:ffi/ffi
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | ext/ffi_c/extconf.rb | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ -# Ruby-FFI https://github.com/ffi/ffi/wiki [![Build Status](https://travis-ci.org/ffi/ffi.svg?branch=master)](https://travis-ci.org/ffi/ffi) [![Build status Windows](https://ci.appveyor.com/api/projects/status/r8wxn1sd4s794gg1/branch/master?svg=true)](https://ci.appveyor.com/project/larskanis/ffi-aofqa/branch/master) +# Ruby-FFI https://github.com/ffi/ffi/wiki [![Build Status](https://travis-ci.com/ffi/ffi.svg?branch=master)](https://travis-ci.com/ffi/ffi) [![Build status Windows](https://ci.appveyor.com/api/projects/status/r8wxn1sd4s794gg1/branch/master?svg=true)](https://ci.appveyor.com/project/larskanis/ffi-aofqa/branch/master) ## Description diff --git a/ext/ffi_c/extconf.rb b/ext/ffi_c/extconf.rb index 8d8a602..cdeaa9b 100644 --- a/ext/ffi_c/extconf.rb +++ b/ext/ffi_c/extconf.rb @@ -50,6 +50,11 @@ if RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx' else $defs << "-DHAVE_FFI_PREP_CIF_VAR" $defs << "-DUSE_INTERNAL_LIBFFI" + + # Ensure libffi symbols aren't exported when using static libffi. + # This is to avoid interference with other gems like fiddle. + # See https://github.com/ffi/ffi/issues/835 + append_ldflags "-Wl,--exclude-libs,ALL" end ffi_alloc_default = RbConfig::CONFIG['host_os'] =~ /darwin/i && RbConfig::CONFIG['host'] =~ /arm/i |