Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit212e07d

Browse files
committed
ext: hack to cross-compile zlib v1.2.13 on darwin
1 parent76dbc8c commit212e07d

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

‎ext/nokogiri/extconf.rb‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -712,9 +712,17 @@ def install
712712
else
713713
class <<recipe
714714
defconfigure
715-
cflags=concat_flags(ENV["CFLAGS"],"-fPIC","-g")
716-
execute("configure",
717-
["env","CHOST=#{host}","CFLAGS=#{cflags}","./configure","--static",configure_prefix])
715+
env={}
716+
env["CFLAGS"]=concat_flags(ENV["CFLAGS"],"-fPIC","-g")
717+
env["CHOST"]=host
718+
execute("configure",["./configure","--static",configure_prefix],{env:env})
719+
ifdarwin?
720+
# needed as of zlib 1.2.13
721+
Dir.chdir(work_path)do
722+
makefile=File.read("Makefile").gsub(/^AR=.*$/,"AR=#{host}-libtool")
723+
File.open("Makefile","w"){ |m|m.write(makefile)}
724+
end
725+
end
718726
end
719727
end
720728
end

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp