[KinoSearch] [kinosearch-commits] r5736 - trunk/perl/buildlib/KinoSearch

Peter Karman peter at peknet.com
Sat Jan 23 18:00:35 PST 2010


marvin at 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 at peknet.com



More information about the kinosearch mailing list