test for valid ASFLAGS before calling yasm

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30112 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
David McPaul 2009-04-11 06:23:14 +00:00
parent 96e5f9e535
commit 31433f615e

View File

@ -174,7 +174,11 @@ rule AssembleNasm
actions AssembleNasm
{
yasm -d $(ASFLAGS) -f elf -o $(1) $(2)
if test $(ASFLAGS) ; then
yasm -d $(ASFLAGS) -f elf32 -o $(1) $(2);
else
yasm -f elf32 -o $(1) $(2);
fi
}
rule Ld