AssembleNasm: add source dir to include path.
This makes it possible to %include local files. nasm doesn't allow this otherwise (include paths are assumed relative to the working directory). Fixes build of ape_reader.
This commit is contained in:
@@ -179,9 +179,9 @@ rule AssembleNasm
|
|||||||
actions AssembleNasm
|
actions AssembleNasm
|
||||||
{
|
{
|
||||||
if test $(ASFLAGS) ; then
|
if test $(ASFLAGS) ; then
|
||||||
$(HAIKU_NASM) -d $(ASFLAGS) $(NASMFLAGS) -o $(1) $(2);
|
$(HAIKU_NASM) -d $(ASFLAGS) $(NASMFLAGS) -I$(2:D)/ -o $(1) $(2) ;
|
||||||
else
|
else
|
||||||
$(HAIKU_NASM) $(NASMFLAGS) -o $(1) $(2);
|
$(HAIKU_NASM) $(NASMFLAGS) -I$(2:D)/ -o $(1) $(2) ;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user