Skip to content

Commit a67b8f1

Browse files
Merge pull request #283 from ahogappa0613/fix/build_error_on_my_env
Fix build error on mac
2 parents 84707d6 + 99ab643 commit a67b8f1

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

lib/ruby_wasm/build_system/product/openssl.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

lib/ruby_wasm/build_system/product/zlib.rb

Lines changed: 11 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,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
4655
end

0 commit comments

Comments
 (0)