public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Jon TURNEY <jturney@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: Define target_builddir autoconf and Makefile variables Date: Sun, 8 Nov 2020 15:21:28 +0000 (GMT) [thread overview] Message-ID: <20201108152128.B40BC385481D@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=20b5e6375c38671dbc45224b94a8c384fc81419c commit 20b5e6375c38671dbc45224b94a8c384fc81419c Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Wed Oct 28 19:11:02 2020 +0000 Cygwin: Define target_builddir autoconf and Makefile variables This is now required as cygwin_build is defined in terms of target_builddir. (Note that in other subdirectories, the autoconf variable target_builddir is AC_SUBST-ed as a side-effect of using a macro from winsup/acinclude.m4, which is perhaps less than ideal) Diff: --- winsup/testsuite/Makefile.in | 1 + winsup/testsuite/configure | 5 +++++ winsup/testsuite/configure.ac | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/winsup/testsuite/Makefile.in b/winsup/testsuite/Makefile.in index aaa5851b2..2a44fec07 100644 --- a/winsup/testsuite/Makefile.in +++ b/winsup/testsuite/Makefile.in @@ -12,6 +12,7 @@ SHELL:=@SHELL@ srcdir:=@srcdir@ objdir:=. libltp_srcdir=$(srcdir)/libltp +target_builddir:=@target_builddir@ target_alias:=@target_alias@ build_alias:=@build_alias@ diff --git a/winsup/testsuite/configure b/winsup/testsuite/configure index da4616582..eab9fbbc7 100755 --- a/winsup/testsuite/configure +++ b/winsup/testsuite/configure @@ -587,6 +587,7 @@ PACKAGE_URL='https://cygwin.com' ac_unique_file="Makefile.in" ac_subst_vars='LTLIBOBJS LIBOBJS +target_builddir AR CPP OBJEXT @@ -1771,6 +1772,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu +. ${srcdir}/../configure.cygwin + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -2790,6 +2793,8 @@ else fi + + ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF diff --git a/winsup/testsuite/configure.ac b/winsup/testsuite/configure.ac index 46f9fb092..effea48c9 100755 --- a/winsup/testsuite/configure.ac +++ b/winsup/testsuite/configure.ac @@ -12,8 +12,12 @@ AC_PREREQ(2.59) AC_INIT([Cygwin Testsuite],[0],[cygwin@cygwin.com],[cygwin],[https://cygwin.com]) AC_CONFIG_SRCDIR(Makefile.in) +. ${srcdir}/../configure.cygwin + AC_PROG_CC AC_PROG_CPP AC_CHECK_TOOL(AR,ar) +AC_SUBST(target_builddir) + AC_OUTPUT(Makefile)
reply other threads:[~2020-11-08 15:21 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20201108152128.B40BC385481D@sourceware.org \ --to=jturney@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).