
bugzilla at apache
Apr 19, 2012, 5:03 AM
Post #3 of 8
(145 views)
Permalink
|
|
[Bug 51257] Build failed when cross-compiling: ./gen_test_char: cannot execute binary file
[In reply to]
|
|
https://issues.apache.org/bugzilla/show_bug.cgi?id=51257 --- Comment #4 from Guenter Knauf <eflash [at] gmx> 2012-04-19 12:03:01 UTC --- Hi Henrik, (In reply to comment #3) > Created attachment 28633 [details] > Same patch as previous file but for httpd_trunk. I've just commited a slightly modified patch to trunk: http://svn.apache.org/viewvc?rev=1327907&view=rev this should work same way as with your patch provided that you export CC_FOR_BUILD=gcc. I hope that we can finally figure out how we can configure teach to set CC_FOR_BUILD automatically in case of detecting cross-compilation so that the export is then not needed. The CC_FOR_BUILD should appear in build/config_vars.mk because then server/Makefile can access it. For 2.2.x you will then need in addition: --- srclib/pcre/Makefile.in.orig 2005-02-11 13:00:41.000000000 +0100 +++ srclib/pcre/Makefile.in 2012-04-19 13:29:06.000000000 +0200 @@ -11,8 +11,13 @@ $(LTLIBRARY_OBJECTS) dftables.lo: config.h +ifdef CC_FOR_BUILD +dftables: dftables.c + $(CC_FOR_BUILD) -o $@ $< +else dftables: dftables.lo $(LINK) $(EXTRA_LDFLAGS) dftables.lo $(EXTRA_LIBS) +endif $(srcdir)/chartables.c: dftables ./dftables $@ -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe [at] httpd For additional commands, e-mail: bugs-help [at] httpd
|