From 18d17beb937e90e84672944fbcedb8a2489e9774 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Mon, 7 Aug 2023 21:35:37 +0100 Subject: [PATCH] Merged in GH#75, "configure --enable-static". --- autoconf/configure.in | 9 +++++++++ doc/ACKNOWLEDGEMENTS.md | 1 + doc/NEWS.md | 1 + 3 files changed, 11 insertions(+) diff --git a/autoconf/configure.in b/autoconf/configure.in index a14e1fa..90225f1 100644 --- a/autoconf/configure.in +++ b/autoconf/configure.in @@ -90,6 +90,15 @@ AC_ARG_ENABLE(ipc, [ --disable-ipc turn off IPC messaging], IPC_SUPPORT="yes" ) +AC_ARG_ENABLE([static], + [AS_HELP_STRING([--enable-static], [enable static linking])], + [ + if test "$enable_static" = "yes"; then + CFLAGS="$CFLAGS -static" + fi + ]) + + dnl AIX needs -lc128 AC_EGREP_CPP([^yes$], [#ifdef _AIX yes diff --git a/doc/ACKNOWLEDGEMENTS.md b/doc/ACKNOWLEDGEMENTS.md index b4a0463..3f804e4 100644 --- a/doc/ACKNOWLEDGEMENTS.md +++ b/doc/ACKNOWLEDGEMENTS.md @@ -83,5 +83,6 @@ is acknowledged and greatly appreciated: * [Volodymyr Bychkovyak](https://github.com/vbychkoviak) - provided fix for rate limit behaviour with bursty traffic * [Nick Black](https://nick-black.com) - added "`--bits`" option * [Andrew Schulman](https://github.com/andrew-schulman) - provided reproducible example of terminal size detection issue in 1.7.17/1.7.18 + * [fuschia74](https://github.com/fuchsia74) - provided "`--enable-static`" patch for "`configure`" --- diff --git a/doc/NEWS.md b/doc/NEWS.md index 73b907a..02e52bb 100644 --- a/doc/NEWS.md +++ b/doc/NEWS.md @@ -1,5 +1,6 @@ 0.0.20230801-UNRELEASED + * feature: new "`--enable-static`" option to "`configure`" for static builds ([GH#75](https://github.com/a-j-wood/pv/issues/75)) * cleanup: added a test for terminal width detection to "`make test`" * cleanup: added a test to "`make test`" to ensure that "`make install`" installs everything expected * cleanup: replaced *AC_HEADER_TIOCGWINSZ* with *AC_CHECK_HEADERS(sys/ioctl.h)* for better MacOS compatibility ([GH#74](https://github.com/a-j-wood/pv/issues/74))