Allow setting `CC' in Unix build (#58051).

* builds/unix/unix-cc.in (CC): Use `override'.  The command line
  value of `CC' (if any) is stored already in `CCraw'.
This commit is contained in:
Werner Lemberg 2020-04-08 09:05:32 +02:00
parent 7a019a63ed
commit 11beee855e
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2020-04-08 Werner Lemberg <wl@gnu.org>
Allow setting `CC' in Unix build (#58051).
* builds/unix/unix-cc.in (CC): Use `override'. The command line
value of `CC' (if any) is stored already in `CCraw'.
2020-04-04 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
[woff2] Return if single stream operation fails.

View File

@ -87,8 +87,12 @@ ANSIFLAGS := @XX_ANSIFLAGS@
# C compiler to use -- we use libtool!
#
CCraw := $(CC)
CC := $(LIBTOOL) --mode=compile $(CCraw)
# CC might be set on the command line; we store this value in `CCraw'.
# Consequently, we use the `override' directive to ensure that the
# libtool call is always prepended.
#
CCraw := $(CC)
override CC := $(LIBTOOL) --mode=compile $(CCraw)
# Resource compiler to use on Cygwin/MinGW, usually windres.
#