[systemd-devel] build-sys: src/core/syscall-list.txt generated with wrong cpp when cross-compiling
Peeters Simon
peeters.simon at gmail.com
Thu Jul 26 06:14:29 PDT 2012
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?
Greetings
Simon Peeters
More information about the systemd-devel
mailing list