Skip to content

Commit 41fd723

Browse files
giordanostaticfloat
authored andcommitted
[XML2] Make sure libxml2 is linked to our own libiconv on macOS (#349)
1 parent 22e93f5 commit 41fd723

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

X/XML2/build_tarballs.jl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ sources = [
1414
# Bash recipe for building across all platforms
1515
script = raw"""
1616
cd ${WORKSPACE}/srcdir/libxml2-*
17-
./autogen.sh
18-
./configure --prefix=${prefix} --host=${target} --without-python --with-zlib=${prefix}
17+
./autogen.sh --prefix=${prefix} --host=${target} \
18+
--without-python \
19+
--with-zlib=${prefix} \
20+
--with-iconv=${prefix}
1921
make -j${nproc} install
2022
"""
2123

@@ -25,12 +27,15 @@ platforms = supported_platforms()
2527

2628
# The products that we will ensure are always built
2729
products = [
28-
LibraryProduct("libxml2", :libxml2)
30+
LibraryProduct("libxml2", :libxml2),
31+
ExecutableProduct("xmlcatalog", :xmlcatalog),
32+
ExecutableProduct("xmllint", :xmllint),
2933
]
3034

3135
# Dependencies that must be installed before this package can be built
3236
dependencies = [
33-
"Zlib_jll"
37+
"Zlib_jll",
38+
"Libiconv_jll",
3439
]
3540

3641
# Build the tarballs, and possibly a `build.jl` as well.

0 commit comments

Comments
 (0)