apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@apache.org>
Subject Re: atomics on solaris producing non-portable binaries
Date Fri, 26 Apr 2002 00:54:35 GMT
On Thu, Apr 25, 2002 at 05:19:16PM -0700, Aaron Bannert wrote:
> I've just come across a serious problem in the atomics autoconf
> code. Since we are detecting which sparc architecture the build is
> running on, and passing architecture-specific flags to the assembler,
> we are producing binaries that aren't backward-compatible.
> 
> For example, I have a build of APR from an Ultra5 running Solaris 5.6
> that produces sparcv8plus binaries. These binaries do not work on an
> older SparcStation5 machine that is running Solaris 5.7.
> 
> Is there still a way we can (automatically) produce atomics code while
> preserving backward compatibility? At least we should be portable based
> on OS rev (eg. Solaris 5.6 builds of APR should run on every 5.6
> machine out there).

How about just using the generic code for these types of situations?
Perhaps we need an --disable-atomic-asm flag that forces the generic
code to be used instead of assembly code? -- justin

Mime
View raw message