This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] building libffi on mswin64 with msvcc.sh


On 03/25/2010 07:58 PM, Dan Witte wrote:
> Here's a patch that adds a few gotchas to the README, and just disables -WX, since it's a pain for everyone. (It'd be nice if we could tell 'cl' to error on warning D4002, "unrecognized option", but I think you can only do that for compiler warnings, not commandline warnings.)
>
> Anthony, can you look over and apply?
>   

Looks good, and applied.

It would be nice to solve the configury problem.  It looks like that
line is coming from libtool, and I see that this bit of libtool has been
rewritten recently.  Maybe it will be fixed in the next release.

Thanks,

AG


> Thanks,
> Dan.
>
> ----- "wanabe" <s.wanabe@gmail.com> wrote:
>
>   
>> Hello, libffi-discuss.
>>
>> I tried to build libffi on mswin64.
>> To do it, I had to rewrite part of msvcc.sh to avoid some warnings.
>> The patch is below.
>>
>> And in configure phase, it needed --build=x86_64-pc-mingw32 and
>> CC="path/to/msvcc.sh -m64".
>> If README notes it, it get more easily comprehensible, I guess.
>>
>> Your attention to this would be greatly appreciated.
>> Sincerely.
>>
>>
>> diff --git a/msvcc.sh b/msvcc.sh
>> index 8301839..f6ae503 100755
>> --- a/msvcc.sh
>> +++ b/msvcc.sh
>> @@ -44,7 +44,7 @@
>>
>>  # Disable specific warnings, and enable warnings-as-errors so we
>> catch any
>>  # mistranslated args.
>> -nowarn="-wd4127 -wd4820 -wd4706 -wd4100 -wd4255 -wd4668 -wd4053
>> -wd4324"
>> +nowarn="-wd4127 -wd4820 -wd4706 -wd4100 -wd4255 -wd4668 -wd4053
>> -wd4324 -wd4267 -wd4305 -wd4054"
>>  args="-nologo -W3 -WX $nowarn"
>>  md=-MD
>>  cl="cl"
>>
>> -- 
>> wanabe
>>     


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]