Skip to content

Commit 99ab643

Browse files
ahogappakateinoigakukun
authored andcommitted
fix: use CHOST env while zlib product build
1 parent 63b3ac8 commit 99ab643

File tree

1 file changed

+10
-2
lines changed
  • lib/ruby_wasm/build_system/product

1 file changed

+10
-2
lines changed

lib/ruby_wasm/build_system/product/zlib.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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,9 @@ 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",
4250
chdir: product_build_dir
43-
system "make install DESTDIR=#{destdir} AR='#{@toolchain.ar}' ARFLAGS='rcD'",
51+
system "make install DESTDIR=#{destdir}",
4452
chdir: product_build_dir
4553
end
4654
end

0 commit comments

Comments
 (0)