Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2020-10-27 18:31:06 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2020-10-28 18:23:56 +0300
commit7fa743ca9468d7725953ebdfb0d0b53ad126c14c (patch)
tree7f66a0562fb26646b1e638226ce184a9e1708b87 /winsup/utils/Makefile.in
parentfcaaf40c9d2d6016334426b30086fecd8ecebfd0 (diff)
Cygwin: Restore setting CC and CXX Makefile variables
b55e3f19 was a bit too aggressive in dropping, rather than just un-exporting these Makefile variables. We need to set these to the configured host compiler if we are cross-compiling, otherwise they default to the build compiler. Also export CC to the mkvers.sh script (which requires it since 4eca5e6a). It's unclear why we can't just cause windres to use the build 'cpp' as the pre-processor there.
Diffstat (limited to 'winsup/utils/Makefile.in')
-rw-r--r--winsup/utils/Makefile.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/utils/Makefile.in b/winsup/utils/Makefile.in
index add29d10f..e21874027 100644
--- a/winsup/utils/Makefile.in
+++ b/winsup/utils/Makefile.in
@@ -11,6 +11,9 @@ target_builddir:=@target_builddir@
winsup_srcdir:=@winsup_srcdir@
configure_args=@configure_args@
+CC:=@CC@
+CXX:=@CXX@
+
CFLAGS_COMMON=-Wimplicit-fallthrough=4 -Werror
CFLAGS:=@CFLAGS@
CXXFLAGS:=@CXXFLAGS@