blob: 8fb974ded4a8b343c623927c2dfac16d5e2e1261 [file] [log] [blame]
Patrick Williams03907ee2022-05-01 06:28:52 -05001Upstream-Status: Backport
2Signed-off-by: Ross Burton <ross.burton@arm.com>
3
4From 05796d3d8d5546cf1b4dfe2cd72ab746afae505d Mon Sep 17 00:00:00 2001
5From: Mark Adler <madler@alumni.caltech.edu>
6Date: Mon, 28 Mar 2022 18:34:10 -0700
7Subject: [PATCH] Fix configure issue that discarded provided CC definition.
8
9---
10 configure | 3 +++
11 1 file changed, 3 insertions(+)
12
13diff --git a/configure b/configure
14index 52ff4a04e..3fa3e8618 100755
15--- a/configure
16+++ b/configure
17@@ -174,7 +174,10 @@ if test -z "$CC"; then
18 else
19 cc=${CROSS_PREFIX}cc
20 fi
21+else
22+ cc=${CC}
23 fi
24+
25 cflags=${CFLAGS-"-O3"}
26 # to force the asm version use: CFLAGS="-O3 -DASMV" ./configure
27 case "$cc" in