[MPlayer-dev-eng] [PATCH] Win32 loader for OS/2
KO Myung-Hun
komh at chollian.net
Mon Mar 3 14:45:03 CET 2008
Hi/2.
Diego Biurrun wrote:
>> I did it to distinguish <> style header and "" style header, but Ok. It is
>> in mmap.diff
>>
>
> This part applied.
>
Thanks.
>
>>>> --- loader/Makefile (revision 26108)
>>>> +++ loader/Makefile (working copy)
>>>> @@ -35,6 +35,11 @@
>>>> +ifeq ($(TARGET_OS),OS/2)
>>>> +wrapper.o : wrapper.S
>>>> + $(CC) -Zomf -c -o $@ $^
>>>> +endif
>>>>
>>> What's the problem here?
>>>
>> Default output of gcc on OS/2 is a.out format. But overall format of
>> MPlayer OS/2 port require OMF format. So without that, librarian cannot
>> recognize it.
>>
>
> I don't understand, -Zomf is added unconditionally to CFLAGS on OS/2.
> So why are you leaving out CFLAGS here?
>
I thought as you. But it did not.
I know, there are no any implicit rules in both config.mak and
mpconfig.mak at all. But make seems to assume default implicit rules
for %.o and %.c to
%.o : %.c
$(CC) $(CFLAGS) -c -o $@ $<
In case of %.o and %.S,
$.o : %.S
$(CC) $(ASFLAGS) -c -o $@ $<
So, without implicit rules for .c files, compilation could be completed
as expect. But in case of .S, compilation is not performed as expect,
because ASFLAGS is not defined.
I tested this with GNU Make 3.81 for OS/2.
And you can confirm what the flags are used to compile wrapper.S by
using delete wrapper.o and call make.
Can you see the options specified by CFLAGS ?
If so, I think this is a problem specific to OS/2 and this patch is in
right direction. Or mpcommon.mak should define implicit rule for %.o and
%.S or 'ASFLAGS'.
--
KO Myung-Hun
Using Mozilla SeaMonkey 1.1.8
Under OS/2 Warp 4 for Korean with FixPak #15
On AMD ThunderBird 1 GHz with 512 MB RAM
Korean OS/2 User Community : http://www.ecomstation.co.kr
More information about the MPlayer-dev-eng
mailing list