We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d6aff2 commit 0d9b427Copy full SHA for 0d9b427
packages/gems/js/ext/js/extconf.rb
@@ -19,7 +19,16 @@
19
$objs << "bindgen/legacy/rb-js-abi-host.o"
20
$objs << "bindgen/legacy/rb-abi-guest.o"
21
end
22
+
23
+component_type_obj = "$(srcdir)/bindgen/ext_component_type.o"
24
25
+unless $static
26
+ # When building shared library, we need to link the component type object
27
+ # to the shared library instead of the main ruby executable.
28
+ $libs << component_type_obj
29
+end
30
31
create_makefile("js") do |mk|
- mk << "EXTRA_OBJS = $(srcdir)/bindgen/ext_component_type.o\n" if use_component_model
32
+ mk << "EXTRA_OBJS = #{component_type_obj}\n" if use_component_model
33
mk
34
0 commit comments