I am putting together a port and unfortunately the do-build target is failing. The software compiles fine if I run GNU make from a shell. I have traced this to a difference in the compiler flags when building with the port Makefile; an include relating the architecture is missing. An example from a diff (note the additional -I ../Include/X64/ when I run
I am at a bit of a loss as to how to investigate further what is causing the issue. I considered fixing it by manually adding back the missing include to CCFLAGS and CPPFLAGS depending on the value of ${ARCH}, but that doesn't seem right and furthermore I have only been able to generate "Malformed conditional" errors when trying to use the .if ${ARCH} == foo construct. The software uses recursive make :\ Can anyone suggest where to look?
gmake
from the shell):
Code:
< gcc -c -MD -fshort-wchar -fno-strict-aliasing -fno-merge-constants -nostdlib -Wall -Werror -c -g -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . GnuGenBootSector.c -o GnuGenBootSector.o
> gcc -c -MD -fshort-wchar -fno-strict-aliasing -fno-merge-constants -nostdlib -Wall -Werror -c -g -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ GnuGenBootSector.c -o GnuGenBootSector.o