Issue #19592 has been updated by npic1 (Nat Pic1).
npic1 (Nat Pic1) wrote:
Hi,
I need to statically link a single extension (not all of them) by adding it to
ext/Setup.
This worked until version 3.1.4 and 3.2.x.
It appears that this change broke it:
[
https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/79…
[
https://github.com/ruby/ruby/pull/6756](https://github.com/ruby/ruby/pull/6….
I have attached a script to reproduce the issue.
When running the script, `ldd` fails with:
```
ext/extinit.o: in function `Init_ext':
extinit.c:(.text+0x10): undefined reference to `ruby_init_ext'
```
cc: @alanwu
----------------------------------------
Bug #19592: Unable to statically link a single extension in 3.2.x and >=3.1.4
https://bugs.ruby-lang.org/issues/19592#change-102802
* Author: npic1 (Nat Pic1)
* Status: Open
* Priority: Normal
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
Hi,
I need to statically link a single extension (not all of them) by adding it to ext/Setup.
This worked until version 3.1.4 and 3.2.x.
It appears that this change broke it:
[
https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/79…
[
https://github.com/ruby/ruby/pull/6756](https://github.com/ruby/ruby/pull/6….
I have attached a script to reproduce the issue.
When running the script, `ldd` fails with:
```
ext/extinit.o: in function `Init_ext':
extinit.c:(.text+0x10): undefined reference to `ruby_init_ext'
```
---Files--------------------------------
ruby_static_test.sh (1.57 KB)
--
https://bugs.ruby-lang.org/