[build] Use *_sol2 GNU ld linker emulations on Solaris 2

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Fri Mar 5 23:03:00 GMT 2010


Ralf Wildenhues <Ralf.Wildenhues@gmx.de> writes:

> Please replace test -a and test -o in the patch with 'test && test'
> and 'test || test'.  One reason -a and -o are not specified in POSIX is
> that different systems implement operator precedence differently between
> these two.  The shell || and && are evaluated strictly from left to
> right (unlike the respective C operators), so you may need to add braces
> for precedence of
>> +       && test $in_tree_ld_is_elf = yes; then

Then this should be done wholesale.  The idiom I've used is a straight
copy of similar constructs all over configure.ac.  Being different in a
single place doesn't seem like a good idea to me.

       Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University



More information about the Gcc-patches mailing list