From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: Patch to fix cross-compiling Date: Mon, 05 Nov 2012 09:28:53 -0500 Message-ID: <1899240.gIdgrumnei@x2> References: <5093F0CE.3010701@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5093F0CE.3010701@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Friday, November 02, 2012 11:11:58 AM George McCollister wrote: > I've created a patch against your SVN trunk which uses > ax_cc_for_build.m4 to provide CC_FOR_BUILD which is then used in > auparse/Makefile.am and lib/Makefile.am to build the utilities that run > on the build machine. > > I was able to use this patch to cross-compile audit for my ARM platform. > I'm still in the process of testing audit on the ARM platform. > > Comments, questions and critiques welcome. Well...it breaks the normal build on x86_64: config.status: creating tools/aulastlog/Makefile config.status: creating tools/ausyscall/Makefile config.status: creating tools/auvirt/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands . Auditd Version: 2.2.2 Target: x86_64-unknown-linux-gnu Installation prefix: /usr Compiler: gcc Compiler flags: -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic + make -j4 make all-recursive make[1]: Entering directory `/home/sgrubb/working/BUILD/audit-2.2.2' Making all in lib make[2]: Entering directory `/home/sgrubb/working/BUILD/audit-2.2.2/lib' make[2]: *** No rule to make target `gen_tables.c', needed by `gen_actiontabs_h'. Stop. make[2]: Leaving directory `/home/sgrubb/working/BUILD/audit-2.2.2/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/sgrubb/working/BUILD/audit-2.2.2' make: *** [all] Error 2 error: Bad exit status from /home/sgrubb/working/tmp/rpm-tmp.XYWHYB (%build) RPM build errors: Bad exit status from /home/sgrubb/working/tmp/rpm-tmp.XYWHYB (%build) Done