4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 12:59:21 +08:00

Cygwin: configure: Add option to disable building 'dumper'

Rather than guessing, based on just the presence of libbfd, add an
explicit configuration option, to build dumper or not, defaulting to
building it.

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.
This commit is contained in:
Jon Turney 2022-12-13 23:17:48 +00:00
parent 87968453dd
commit 1b5fc91a1d
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
2 changed files with 7 additions and 4 deletions

View File

@ -111,10 +111,12 @@ AM_CONDITIONAL(CROSS_BOOTSTRAP, [test "x$with_cross_bootstrap" != "xyes"])
AC_EXEEXT
AC_CHECK_LIB([bfd], [bfd_init], [true],
AC_MSG_WARN([Not building dumper.exe since some required libraries or headers are missing]))
AC_ARG_ENABLE([dumper],
[AS_HELP_STRING([--disable-dumper], [do not build the 'dumper' utility])],
[build_dumper=$enableval],
[build_dumper=yes])
AM_CONDITIONAL(BUILD_DUMPER, [test "x$ac_cv_lib_bfd_bfd_init" = "xyes"])
AM_CONDITIONAL(BUILD_DUMPER, [test "x$build_dumper" = "xyes"])
AC_CONFIG_FILES([
Makefile

View File

@ -685,7 +685,8 @@ installed; you at least need <literal>gcc-g++</literal>,
<para>
Additionally, building the <code>dumper</code> utility requires
<literal>gettext-devel</literal>, <literal>libiconv-devel</literal>
<literal>zlib-devel</literal>.
<literal>zlib-devel</literal>. Building this program can be disabled with the
<literal>--disable-dumper</literal> option to <literal>configure</literal>.
</para>
<para>