From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id B2442385802F; Wed, 21 Dec 2022 11:48:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2442385802F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671623330; bh=mHtXWa25gQ+LVv/AoQFNlx8gJfj9fO8Mp9bEYzr3BRQ=; h=From:To:Subject:Date:From; b=ON04XesK6yF12uZ3wsUkiRtpflVdHY9lAbGrGwOwJ8UJM9ba2Dg/Hab0xywrdQ9an 3C4kqwgkbb+EWcMJX2G1l66zuoaxjv//ET8BD9t08RS3pdxG3B5Np/eB8OxUQoM+wf Rw4QqIZDJPbtj2U2FcMOPFJ1M7t+gjL+Qd0z+Goc= 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: configure: Add option to disable building 'dumper' X-Act-Checkin: newlib-cygwin X-Git-Author: Jon Turney X-Git-Refname: refs/heads/master X-Git-Oldrev: 87968453dda533a21a4a8dccd2c573cd16c40695 X-Git-Newrev: 1b5fc91a1daa90fb955f57937f4590c5079dd161 Message-Id: <20221221114850.B2442385802F@sourceware.org> Date: Wed, 21 Dec 2022 11:48:50 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D1b5fc91a1da= a90fb955f57937f4590c5079dd161 commit 1b5fc91a1daa90fb955f57937f4590c5079dd161 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. Diff: --- winsup/configure.ac | 8 +++++--- winsup/doc/faq-programming.xml | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/winsup/configure.ac b/winsup/configure.ac index 9205a8886..7a2121dae 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 AC_CONFIG_FILES([ Makefile diff --git a/winsup/doc/faq-programming.xml b/winsup/doc/faq-programming.xml index a24b781cf..24c7f928e 100644 --- a/winsup/doc/faq-programming.xml +++ b/winsup/doc/faq-programming.xml @@ -685,7 +685,8 @@ installed; you at least need gcc-g++, Additionally, building the dumper utility requires gettext-devel, libiconv-devel -zlib-devel. +zlib-devel. Building this program can be disabled with= the +--disable-dumper option to configure. =20