- add targetarch hack for adrian, targetarch now sets the _target_cpu macro
authorMichael Schroeder <mls@suse.de>
Thu, 31 May 2012 12:21:44 +0000 (14:21 +0200)
committerMichael Schroeder <mls@suse.de>
Thu, 31 May 2012 12:21:44 +0000 (14:21 +0200)
Build.pm

index 96fba28..8c35ac6 100644 (file)
--- 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 !~ /^[#%]/) {