[ARGUS] Autoconf problems on powerpc

Andrew Pollock andrew-argus at andrew.net.au
Mon Apr 12 18:59:58 EDT 2004


On Mon, Apr 12, 2004 at 09:24:02AM -0400, Carter Bullard wrote:
> Hey Andrew,
>    Definitely interested and I'll try to have a new rc
> this afternoon.

Cool. Thanks for that. I've been unable to turn up anything conclusive with
Google, but you can see the problem here:

case "$target_cpu" in

*86*)
        cat >>confdefs.h <<\_ACEOF
#define CONFIG_X86_BSWAP 1
_ACEOF

        ;;

powerpc*)
        V_CCOPT="-mpowerpc64 $V_CCOPT"
        cat >>confdefs.h <<\_ACEOF
#define ALIGN_64BIT 1
_ACEOF

        ;;
esac

You can see that if $target_cpu contains powerpc (or extra characters), it
sets the GCC -m option to powerpc64 regardless, which is clearly a bug.

regards

Andrew



More information about the argus mailing list