From: Martin Mares Date: Thu, 7 Oct 2010 14:58:43 +0000 (+0200) Subject: UCW::Configure::C: de-reference CPU_ARCH in COPT X-Git-Tag: v5.0~140 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=f0c77ee3ca96b8ce3312dfcdc0a450644b09fce6;p=libucw.git 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. --- 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