Configure broken on MIPS when uname returns mipsel or mips64el
Ao Qi
aoqi at loongson.cn
Thu May 31 00:53:04 UTC 2018
Hi Erik,
Thanks for reviewing and sponsoring.
2018-05-31 0:39 GMT+08:00 Erik Joelsson <erik.joelsson at oracle.com>:
> I'll sponsor it.
>
> /Erik
>
>
>
> On 2018-05-29 23:13, Ao Qi wrote:
>>
>> Could someone help to create a bug etc?
>>
>> Thanks,
>> Ao Qi
>> Magnus Ihse Bursie <magnus.ihse.bursie at oracle.com> 于2018年5月25日周五 下午
>> 3:42写道:
>>
>>> On 2018-05-24 03:08, Ao Qi wrote:
>>> Hi Erik,
>>> Thanks for your comments. I made a new patch:
>>> $ hg diff
>>> diff -r 31361382634b make/autoconf/build-aux/config.guess
>>> --- a/make/autoconf/build-aux/config.guess Tue May 22 10:08:04 2018 -0700
>>> +++ b/make/autoconf/build-aux/config.guess Thu May 24 09:07:17 2018 +0800
>>> @@ -86,6 +86,17 @@
>>> fi
>>> fi
>>> +# Test and fix little endian MIPS.
>>> +if [ "x$OUT" = x ]; then
>>> + if [ `uname -s` = Linux ]; then
>>> + if [ `uname -m` = mipsel ]; then
>>> + OUT=mipsel-unknown-linux-gnu
>>> + elif [ `uname -m` = mips64el ]; then
>>> + OUT=mips64el-unknown-linux-gnu
>>> + fi
>>> + fi
>>> +fi
>>> +
>>> # Test and fix cpu on Macosx when C preprocessor is not on the path
>>> echo $OUT | grep i386-apple-darwin > /dev/null 2> /dev/null
>>> if test $? = 0; then
>>
>>
>>> Looks good to me.
Hi Magnus,
Thanks for reviewing.
>>> /Magnus
>>> Cheers,
>>> Ao Qi
>>> 2018-05-24 0:19 GMT+08:00 Erik Joelsson <erik.joelsson at oracle.com>:
>>> Hello Ao Qi,
>>> Due to licensing reasons, we are unable to directly update the
>>> autoconf-config.guess file. Instead we have the wrapper, config.guess in
>>> which we make adjustments to the result returned by
>>> autoconf-config.guess.
>>> Your fix needs to go in the wrapper file.
>>> /Erik
More information about the build-dev
mailing list