[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH] Fix build for mingw32 on windows ($@ in macro)
From: |
Stefan Weil |
Subject: |
[Qemu-devel] Re: [PATCH] Fix build for mingw32 on windows ($@ in macro) |
Date: |
Fri, 20 Nov 2009 07:40:39 +0100 |
User-agent: |
Mozilla-Thunderbird 2.0.0.22 (X11/20090707) |
malc schrieb:
> On Thu, 19 Nov 2009, Stefan Weil wrote:
>
>> Make using mingw32 on windows does not preserve $@ in macros
>> when they are modified using this pattern:
>> target: macro += something
>>
>> This behaviour results in an error when QEMU_CFLAGS containing
>> "-MMD -MP -MT $@" is modified for compilation of source files
>> which use SDL: $@ will expand to nothing, -MT no longer has
>> the correct argument (it will take the next one from the command
>> line) and the build will fail or run with a wrong command line.
>>
>> The problem is fixed by using a new macro QEMU_DGFLAGS
>> which is not modified by a target rule.
>
> Why not just stuff `-MMD -MP -MT $@' into the rules?
>
> [..snip..]
As in most cases, there are many ways to do something...
During my test, I had the dependency flags in the rules.
I decided to use a macro to allow people running make
without dependency generation (make QEMU_DGFLAGS=).
Stefan
- [Qemu-devel] Build failure on mingw, Sebastian Herbszt, 2009/11/14
- Message not available
- [Qemu-devel] Re: Build failure on mingw, Sebastian Herbszt, 2009/11/16
- [Qemu-devel] Re: Build failure on mingw, malc, 2009/11/16
- [Qemu-devel] Re: Build failure on mingw, Sebastian Herbszt, 2009/11/17
- [Qemu-devel] [PATCH] Fix build for mingw32 on windows ($@ in macro), Stefan Weil, 2009/11/19
- [Qemu-devel] Re: [PATCH] Fix build for mingw32 on windows ($@ in macro), Sebastian Herbszt, 2009/11/19
- [Qemu-devel] Re: [PATCH] Fix build for mingw32 on windows ($@ in macro), malc, 2009/11/19
- [Qemu-devel] Re: [PATCH] Fix build for mingw32 on windows ($@ in macro),
Stefan Weil <=
- Re: [Qemu-devel] [PATCH] Fix build for mingw32 on windows ($@ in macro), Jamie Lokier, 2009/11/19
- Re: [Qemu-devel] [PATCH] Fix build for mingw32 on windows ($@ in macro), Stefan Weil, 2009/11/20
- Re: [Qemu-devel] [PATCH] Fix build for mingw32 on windows ($@ in macro), Jamie Lokier, 2009/11/20
- Re: [Qemu-devel] [PATCH] Fix build for mingw32 on windows ($@ in macro), Stefan Weil, 2009/11/20
- Re: [Qemu-devel] [PATCH] Fix build for mingw32 on windows ($@ in macro), Sebastian Herbszt, 2009/11/20