zlib builds linux shared library with setup_sdk(target="10.10")
Setting setup_sdk(target="10.10") in jhbuildrc-custom produces the linux style shared library libz.so.1.2.12 instead of macOS dylib libz.1.2.12.dylib which in turn breaks building itstool as libxml2 is build against that (it fails the libxml2 module test). Building it without setup_sdk(target="10.10")
works correctly.
jhbuild build zlib
Loading .env environment variables...
*** Checking out zlib *** [1/1]
xzcat -d "/opt/gtk3/source/pkgs/zlib-1.2.12.tar.xz" | tar xf -
*** Configuring zlib *** [1/1]
./configure --prefix /opt/gtk3
Checking for shared library support...
Building shared library libz.so.1.2.12 with /Applications/Xcode.app/Contents/Developer/usr/bin/gcc.
Checking for size_t... Yes.
Checking for off64_t... No.
Checking for fseeko... Yes.
Checking for strerror... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
I'm a bit puzzled why that happens since when I build it directly with these settings configure builds the dylib:
SDK=' -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.10'
export PATH=/opt/x86_64/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
export CC="/Applications/Xcode.app/Contents/Developer/usr/bin/gcc"
export CPPFLAGS='-I/opt/gtk3/include '$SDK
export CFLAGS='-I/opt/gtk3/include '$SDK' '$OPT
export CXXFLAGS='-I/opt/gtk3/include '$SDK' '$OPT
export LDFLAGS='-L/opt/gtk3/lib '$SDK' '$OPT
% ./configure --prefix /opt/gtk3
Checking for shared library support...
Building shared library libz.1.2.12.dylib with /Applications/Xcode.app/Contents/Developer/usr/bin/gcc.
Checking for size_t... Yes.
Checking for off64_t... No.
Checking for fseeko... Yes.
Checking for strerror... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.
using that dylib makes everything (jhbuild build meta-gtk-osx-bootstrap meta-gtk-osx-gtk3) build correctly without errors.