extconf.rb Makefile compiles binary into wrong directory depending on OS #202
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Hello, I'm running into an issue building a native extension from
bundle gem --ext=rust
with the default setup. I believe I've narrowed it down to the Makefile generated bycreate_rust_makefile
in this package.When I compile locally on my M1 Mac, the resulting gem in bundler has this directory structure:
Note the location of
my_gem.bundle
, nested underlib/my_gem/
.However, when I pull my gem down in production (an x86_64 linux machine) and run bundler, I have a different folder structure:
Note
my_gem.so
is now up a directory.This breaks my gem since the
require_relative
path inmy_gem.rb
expects the compiled binary to live in themy_gem/
directory.My
extconf.rb
is the default generated bybundle gem --ext=rust
:And the gem entrypoint:
The text was updated successfully, but these errors were encountered: