From a9809a0f8751b5d7de3f89dbd81b2d6685f7c8c8 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Thu, 31 May 2012 14:21:44 +0200 Subject: [PATCH] - add targetarch hack for adrian, targetarch now sets the _target_cpu macro --- Build.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Build.pm b/Build.pm index 96fba28..8c35ac6 100644 --- a/Build.pm +++ b/Build.pm @@ -279,6 +279,7 @@ sub read_config { $config->{'releaseprg'} = $l[0]; } elsif ($l0 eq 'changetarget:' || $l0 eq 'target:') { $config->{'target'} = join(' ', @l); + push @macros, "%define _target_cpu ".(split('-', $config->{'target'}))[0] if $config->{'target'}; } elsif ($l0 eq 'hostarch:') { $config->{'hostarch'} = join(' ', @l); } elsif ($l0 !~ /^[#%]/) { -- 2.7.4