From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id A7B873858C1F; Sat, 19 Aug 2023 15:51:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A7B873858C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692460266; bh=gSrd6u+HBa14R/sQ4B//0upRmq0nr6+jtgP7e4NTyeA=; h=From:To:Subject:Date:From; b=u/LoJg87jaFXhfi8//UArSCEqQnpyO6Z7Y4SI2+Jzfi9jSvBi8gHE7w43xhGV9Ell dCsxXIzuQRodR2MSRPPitMJ3pRUULjioZJl+5BeJPhtR7SW9rhp4f/1rAW014Ygq65 sRhRw+ln8eb1BjY+/yRdrzuQmu8y2ajPYO/eH1Yk= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jon Turney To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/cygwin-3_4-branch] Cygwin: configure: Add option to disable building 'dumper' X-Act-Checkin: newlib-cygwin X-Git-Author: Jon Turney X-Git-Refname: refs/heads/cygwin-3_4-branch X-Git-Oldrev: 3cfd7896ea51f28e55db4f22cfdfeec2c3011aff X-Git-Newrev: d7a76c6b6460efa26c690aaa97a1843c9391d19f Message-Id: <20230819155106.A7B873858C1F@sourceware.org> Date: Sat, 19 Aug 2023 15:51:06 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Dd7a76c6b646= 0efa26c690aaa97a1843c9391d19f commit d7a76c6b6460efa26c690aaa97a1843c9391d19f Author: Jon Turney Date: Tue Dec 13 23:17:48 2022 +0000 Cygwin: configure: Add option to disable building 'dumper' =20 Rather than guessing, based on just the presence of libbfd, add an explicit configuration option, to build dumper or not, defaulting to building it. =20 This might have some use when bootstrapping Cygwin for a new architecture, or when building your own Cygwin-targetted cross-compiler, rather than installing one from the copr, along with the dependencies of libbfd. =20 (cherry picked from commit 1b5fc91a1daa90fb955f57937f4590c5079dd161) Diff: --- winsup/configure.ac | 8 +++++--- winsup/doc/faq-programming.xml | 10 ++++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/winsup/configure.ac b/winsup/configure.ac index 49a8346fa..132028d0d 100644 --- a/winsup/configure.ac +++ b/winsup/configure.ac @@ -111,10 +111,12 @@ AM_CONDITIONAL(CROSS_BOOTSTRAP, [test "x$with_cross_b= ootstrap" !=3D "xyes"]) =20 AC_EXEEXT =20 -AC_CHECK_LIB([bfd], [bfd_init], [true], - AC_MSG_WARN([Not building dumper.exe since some required libraries o= r headers are missing])) +AC_ARG_ENABLE([dumper], + [AS_HELP_STRING([--disable-dumper], [do not build the 'dumper' util= ity])], + [build_dumper=3D$enableval], + [build_dumper=3Dyes]) =20 -AM_CONDITIONAL(BUILD_DUMPER, [test "x$ac_cv_lib_bfd_bfd_init" =3D "xyes"]) +AM_CONDITIONAL(BUILD_DUMPER, [test "x$build_dumper" =3D "xyes"]) =20 # libbfd.a doesn't have a pkgconfig file, so we guess what it's dependenci= es # are, based on what's present in the build environment diff --git a/winsup/doc/faq-programming.xml b/winsup/doc/faq-programming.xml index d23f32c3a..478cf997f 100644 --- a/winsup/doc/faq-programming.xml +++ b/winsup/doc/faq-programming.xml @@ -679,8 +679,14 @@ rewriting the runtime library in question from specs... installed; you at least need gcc-g++, make, automake, autoconf, git, perl, -gettext-devel, libiconv-devel, libzstd-devel, -zlib-devel, cocom and patch= . +cocom and patch. + + + +Additionally, building the dumper utility requires +gettext-devel, libiconv-devel, libzstd-devel and +zlib-devel. Building this program can be disabled with= the +--disable-dumper option to configure. =20