From f0c77ee3ca96b8ce3312dfcdc0a450644b09fce6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 7 Oct 2010 16:58:43 +0200 Subject: [PATCH] UCW::Configure::C: de-reference CPU_ARCH in COPT Originally, when CONFIG_EXACT_CPU was enabled, COPT contained `-march=$(CPU_ARCH)', which worked when it was used in a Makefile, but not when doing a test compile in the configure script. I changed it to dereference the variable immediately. --- ucw/perl/UCW/Configure/C.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ucw/perl/UCW/Configure/C.pm b/ucw/perl/UCW/Configure/C.pm index c0d6b8c7..84c20da0 100644 --- a/ucw/perl/UCW/Configure/C.pm +++ b/ucw/perl/UCW/Configure/C.pm @@ -188,7 +188,7 @@ Set("CLANG" => "-std=gnu99 -fno-common"); # C optimizations Set("COPT" => '-O2'); if (Get("CPU_ARCH") ne "unknown" && Get("CPU_ARCH") ne "default") { - Append("COPT", '-march=$(CPU_ARCH)'); + Append("COPT", '-march=' . Get("CPU_ARCH")); } # C optimizations for highly exposed code -- 2.39.2