Skip to content

Commit

Permalink
Cygwin: configure: Add option to disable building 'dumper'
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jon-turney authored and lazka committed Aug 18, 2023
1 parent 990156b commit b763214
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions winsup/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,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"])

# libbfd.a doesn't have a pkgconfig file, so we guess what it's dependencies
# are, based on what's present in the build environment
Expand Down

0 comments on commit b763214

Please sign in to comment.