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:00:35 GMT
marvin@rectangular.com wrote on 1/22/10 8:53 PM:
> Author: creamyg
> Date: 2010-01-22 18:53:13 -0800 (Fri, 22 Jan 2010)
> New Revision: 5736
> 
> Modified:
>    trunk/perl/buildlib/KinoSearch/Build.pm
> Log:
> To make atomic intrinsics available under GCC, override the default
> architecture of 386 with "-march=i486".  Consolidate handling of GCC versions
> (which was supposed to be in a recent commit, but didn't make it).


> +
> +        # 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


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

Mime
View raw message