File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
lib/ruby_wasm/build_system/product Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ def name
3131
3232 def configure_args
3333 args = %w[
34+ gcc
3435 -static
3536 -no-asm
3637 -no-threads
Original file line number Diff line number Diff line change @@ -28,6 +28,14 @@ def name
2828 product_build_dir
2929 end
3030
31+ def configure_args
32+ args = %w[
33+ CHOST=linux
34+ ]
35+
36+ args + tools_args
37+ end
38+
3139 def build
3240 return if Dir . exist? ( install_root )
3341
@@ -38,9 +46,10 @@ def build
3846 chdir : File . dirname ( product_build_dir ) ,
3947 exception : true
4048
41- system "#{ tools_args . join ( " " ) } ./configure --static" ,
49+ system "#{ configure_args . join ( " " ) } ./configure --static" ,
50+ chdir : product_build_dir
51+ system "make install DESTDIR=#{ destdir } " ,
4252 chdir : product_build_dir
43- system "make install DESTDIR=#{ destdir } " , chdir : product_build_dir
4453 end
4554 end
4655end
You can’t perform that action at this time.
0 commit comments