aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2020-12-18 23:53:47 -0800
committerGuy Harris <gharris@sonic.net>2020-12-18 23:53:47 -0800
commit8b0d19c63433ec89c84139f6fee298dc32994741 (patch)
tree271dcc6267f77d8e5bbcb598d01450a481d19c13 /tools
parent0cdbdcc5a40f01117aa277120c97cda3c8107dfe (diff)
macos-setup: explain why we're running autoreconf on minizip.
[skip ci]
Diffstat (limited to 'tools')
-rwxr-xr-xtools/macos-setup.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/macos-setup.sh b/tools/macos-setup.sh
index d3886dd391..7733d9a06b 100755
--- a/tools/macos-setup.sh
+++ b/tools/macos-setup.sh
@@ -2111,6 +2111,17 @@ install_minizip() {
[ -f zlib-$ZLIB_VERSION.tar.gz ] || curl -L -o zlib-$ZLIB_VERSION.tar.gz https://zlib.net/zlib-$ZLIB_VERSION.tar.gz || exit 1
$no_build && echo "Skipping installation" && return
gzcat zlib-$ZLIB_VERSION.tar.gz | tar xf - || exit 1
+ #
+ # minizip ships both with a minimal Makefile that doesn't
+ # support "make install", "make uninstall", or "make distclean",
+ # and with a Makefile.am file that, if we do an autoreconf,
+ # gives us a configure script, and a Makefile.in that, if we run
+ # the configure script, gives us a Makefile that supports ll of
+ # those targets, and that installs a pkg-config .pc file for
+ # minizip.
+ #
+ # So that's what we do.
+ #
cd zlib-$ZLIB_VERSION/contrib/minizip || exit 1
LIBTOOLIZE=glibtoolize autoreconf --force --install
CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=0 $VERSION_MIN_FLAGS $SDKFLAGS" CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=0 $VERSION_MIN_FLAGS $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure || exit 1