solaris 'as' problem

Werner Koch wk at gnupg.org
Mon Aug 20 17:50:01 CEST 2001


Hi,

can someone else please comment on this patch:

On Wed, 15 Aug 2001 22:59:42 +0900, Kenji Miyake said:

>  I have some compiling problem gpg1.0.6 in solaris2.5.1(x86) and solved.

All the i86 asm files:
> +#ifdef SUN_X86_SYNTAX
> +	addl	$[Loop-L0-3],%eax
> +#else
>  	addl	$(Loop-L0-3),%eax
> +#endif

And config.links:

> +    i[3467]86*-*-solaris2*)
> +	echo '#define SUN_X86_SYNTAX' >>./mpi/asm-syntax.h
> +	cat  $srcdir/mpi/i386/syntax.h	    >>./mpi/asm-syntax.h
> +	path="i386"
> +	;;
>      i[3467]86*-*-*)
>  	echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h
>  	cat  $srcdir/mpi/i386/syntax.h	    >>./mpi/asm-syntax.h

I think this solution is too simple and might break in other
envoronments.  When did Sun changed the syntax?  Is gcc able to cope
with that new syntax?  Is there an easy configure text to check
whether the new syntax is to be used?

tia,

   Werner

-- 
Werner Koch        Omnis enim res, quae dando non deficit, dum habetur
g10 Code GmbH      et non datur, nondum habetur, quomodo habenda est.
Privacy Solutions                                        -- Augustinus





More information about the Gnupg-devel mailing list