Skip to content

Commit c663e49

Browse files
authored
Merge pull request #2671 from sparklemotion/flavorjones-update-zlib-1.2.13_v1.13.x
dep: update zlib to v1.2.13 (backport to v1.13.x)
2 parents 24e3a9c + 212e07d commit c663e49

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

dependencies.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ libxslt:
99
# sha-256 hash provided in https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.37.sha256sum
1010

1111
zlib:
12-
version: "1.2.12"
13-
sha256: "91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9"
12+
version: "1.2.13"
13+
sha256: "b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30"
1414
# SHA-256 hash provided on http://zlib.net/
1515

1616
libiconv:

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
def configure
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+
if darwin?
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy