[systemd-devel] build-sys: src/core/syscall-list.txt generated with wrong cpp when cross-compiling

Kay Sievers kay at vrfy.org
Thu Jul 26 06:35:37 PDT 2012


On Thu, Jul 26, 2012 at 3:14 PM, Peeters Simon <peeters.simon at gmail.com> wrote:
> when cross-compiling src/core/syscall-list.txt still gets generated by
> the build cpp
> (because it is hard coded as '$(AM_V_GEN)cpp $(AM_CPPFLAGS)
> $(CPPFLAGS) -dM -include sys/syscall.h ')
>
> the problem arises when the build cpp and host cpp have different
> default locations for includes (which is the case in my
> cross-toolchain) and the host syscall.h defines not all syscalls
> defined in the build syscall.h which results in unsupstituted macros
> in syscall-to-name.h when compiling
>
> the solution would be to use the host cc with the -E flag, so it
> always uses the right includes.
>
> can somebody who knows something about the build-system look in to this?

Does $(CPP) make it work?

Kay


More information about the systemd-devel mailing list