ref: 11beee855e29757a07320fd60e85de2e8da4e037
parent: 7a019a63ed9753772e758beec3cad7c0b74ee2aa
author: Werner Lemberg <[email protected]>
date: Wed Apr 8 05:05:32 EDT 2020
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'.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-04-08 Werner Lemberg <[email protected]>
+
+ 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 <[email protected]>
[woff2] Return if single stream operation fails.
--- a/builds/unix/unix-cc.in
+++ b/builds/unix/unix-cc.in
@@ -87,8 +87,12 @@
# 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.
#