lucy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Karman <pe...@peknet.com>
Subject Re: [kinosearch-commits] r5736 - trunk/perl/buildlib/KinoSearch
Date Sun, 24 Jan 2010 02:21:38 GMT
Peter Karman wrote on 1/23/10 8:00 PM:

>> +
>> +        # Tell GCC to compile with a target architecture of 486 rather than
>> +        # the default 386 so that intrinsic atomics will be available.
>> +        if ( $extra_ccflags !~ /-march=\w+/ ) {
>> +            $extra_ccflags .= "-march=i486 ";
>> +        }
> 
> that flag, while necessary on 32bit archs that I've tried, breaks compilation 
> immediately under 64bit archs with the message:
> 
> cc1: CPU you selected does not support x86-64 instruction set
> 
> 

perhaps checking $Config{'cppsymbols'} in Build.pm would be appropriate, for 
conditionally setting -march ?

-- 
Peter Karman  .  http://peknet.com/  .  peter@peknet.com

Mime
View raw message