2011/4/2 Prof Brian Ripley <[email protected]>:
> Thanks to Kai for this.
>
> One more thing to note:
>
> gcc -m32 does not define WIN64
> windres -F i386 does (which seems to me a buglet).
>
> Brian Ripley
>
> On Wed, 30 Mar 2011, Kai Tietz wrote:
>
>> 2011/3/30 Prof Brian Ripley <[email protected]>:
>>>
>>> On Tue, 29 Mar 2011, John E. / TDM wrote:
>>>
>>>> On 3/29/2011 12:09 AM, Prof Brian Ripley wrote:
>>>>>
>>>>> dlltool -m i386 --as "as --32"
>>>>>
>>>>> but that syntax seems to fail as it does not unpack the quoting
>>>>> GNU c:\R\TDM\bin\dlltool (GNU Binutils) 2.21
>>>>>
>>>>> dlltool -m i386 -k --as "as --32" -v --dllname R.dll --input-def
>>>>> R.def --output-lib libR.dll.a
>>>>> c:\R\TDM\bin\dlltool.exe: Processing def file: R.def
>>>>> c:\R\TDM\bin\dlltool.exe: Processed def file
>>>>> c:\R\TDM\bin\dlltool.exe: Processing definitions
>>>>> c:\R\TDM\bin\dlltool.exe: Processed definitions
>>>>> c:\R\TDM\bin\dlltool.exe: Creating library file: libR.dll.a
>>>>> c:\R\TDM\bin\dlltool.exe: run: as --32   -o dioeh.o dioeh.s
>>>>> c:\R\TDM\bin\dlltool.exe: No such file or directory
>>>>> c:\R\TDM\bin\dlltool.exe: CreateProcess
>>>>
>>>> This appears to indicate that the command you passed is correctly being
>>>> used, but you didn't pass the correct command. You need to either add
>>>> C:\R\TDM\x86_64-w64-mingw32\bin to your %PATH%, or use
>>>> "x86_64-w64-mingw32-as --32" instead of just plain "as --32".
>>>
>>> as.exe in in the path in at c:\R\TDM\bin, and there is no
>>> x86_64-w64-mingw32-as.exe there.  It does work as "as", so your
>>> explanation does not fit.
>>
>> Your issue is the use of wrong option here for passing as' arguments.
>> Use '--as-flags=--32 -m i386' instead for 32-bit. This should work as
>> you desire. For 64-bit use '--as-flags=--64 -m i386:x86-64'.
>> I admit that this target-specifiers in binutils are a mess, and not a
>> single tool shares same option set to specify target ... but well this
>> isn't grown on our mug-pile ... we just need to live by it.
>>
>> Regards,
>> Kai
>>

I have prepared a patch for binutils' windres tool, so that you can
pass additional options (beside define/undefine ones, which are actual
already present) to preprocessor. The new option's name will be
--preprocessor-arg=<arg>.

Regards,
Kai

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to