Re: [PATCH 1/5] Enable cross compiling

Steve Grubb
2015-07-15T20:38:07Z

On Thursday, May 28, 2015 08:04:05 AM Clayton Shotwell wrote:
> During the audit build, several lookup tables are generated as header
> files that are then linked in with the executables. This process is done
> by a C application that needs to be able to be run on the host. The
> current Makfile structure tries to build these executables for the
> target instead of the host where they cannot be executed. This patch
> reworks the Makefile structure to build for the correct platform.
>
> This patch is a rework of a patch posted to the audit mailing list at
> the link below.
> https://www.redhat.com/archives/linux-audit/2012-November/msg00000.html
>
> The ax_prog_cc_for_build.m4 file was obtained from GNU at the link
> below.
> http://www.gnu.org/software/autoconf-archive/ax_prog_cc_for_build.html
>
> Signed-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>

This patch causes a problem during a normal build:

Making all in lib
make[2]: Entering directory '/home/sgrubb/working/BUILD/audit-2.4.3/lib'
make[2]: *** No rule to make target 'gen_tables.c', needed by
'gen_actiontabs_h'. Stop.

-Steve