ASF Bugzilla – Attachment 28632 Details for
Bug 51257
Build failed when cross-compiling: ./gen_test_char: cannot execute binary file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Simple patch for defining the C compiler command to be used for compilation of programs that run on BUILD during cross-compiling, e.g. gen_test_char.
bug_51257_httpd_2.4.x_patch (text/plain), 2.68 KB, created by
Henrik Strand
on 2012-04-18 07:45:54 UTC
(
hide
)
Description:
Simple patch for defining the C compiler command to be used for compilation of programs that run on BUILD during cross-compiling, e.g. gen_test_char.
Filename:
MIME Type:
Creator:
Henrik Strand
Created:
2012-04-18 07:45:54 UTC
Size:
2.68 KB
patch
obsolete
>Index: docs/manual/programs/configure.xml >=================================================================== >--- docs/manual/programs/configure.xml (revision 1327088) >+++ docs/manual/programs/configure.xml (working copy) >@@ -695,6 +695,10 @@ > <dt><code>LDFLAGS</code></dt> > <dd>Set linker flags, e.g. <code>-L<var>libdir</var></code> if you have > libraries in a nonstandard directory <var>libdir</var>.</dd> >+ >+ <dt><code>BUILDCC</code></dt> >+ <dd>Define the C compiler command to be used for compilation of programs >+ that run on BUILD during cross-compiling, e.g. gen_test_char.</dd> > </dl> > </section> > </manualpage> >Index: docs/manual/programs/configure.html.en >=================================================================== >--- docs/manual/programs/configure.html.en (revision 1327088) >+++ docs/manual/programs/configure.html.en (working copy) >@@ -676,6 +676,10 @@ > <dt><code>LDFLAGS</code></dt> > <dd>Set linker flags, e.g. <code>-L<var>libdir</var></code> if you have > libraries in a nonstandard directory <var>libdir</var>.</dd> >+ >+ <dt><code>BUILDCC</code></dt> >+ <dd>Define the C compiler command to be used for compilation of programs >+ that run on BUILD during cross-compiling, e.g. gen_test_char.</dd> > </dl> > </div></div> > <div class="bottomlang"> >@@ -685,4 +689,4 @@ > </div><div id="footer"> > <p class="apache">Copyright 2012 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> > <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div> >-</body></html> >\ No newline at end of file >+</body></html> >Index: server/Makefile.in >=================================================================== >--- server/Makefile.in (revision 1327088) >+++ server/Makefile.in (working copy) >@@ -24,7 +24,11 @@ > > gen_test_char_OBJECTS = gen_test_char.lo > gen_test_char: $(gen_test_char_OBJECTS) >- $(LINK) $(EXTRA_LDFLAGS) $(gen_test_char_OBJECTS) $(EXTRA_LIBS) >+ @if test "x$(BUILDCC)" != "x"; then \ >+ $(BUILDCC) -DCROSS_COMPILE -o $@ gen_test_char.c; \ >+ else \ >+ $(LINK) $(EXTRA_LDFLAGS) $(gen_test_char_OBJECTS) $(EXTRA_LIBS); \ >+ fi > > test_char.h: gen_test_char > ./gen_test_char > test_char.h >Index: acinclude.m4 >=================================================================== >--- acinclude.m4 (revision 1327088) >+++ acinclude.m4 (working copy) >@@ -47,6 +47,7 @@ > APACHE_SUBST(progname) > APACHE_SUBST(prefix) > APACHE_SUBST(AWK) >+ APACHE_SUBST(BUILDCC) > APACHE_SUBST(CC) > APACHE_SUBST(CPP) > APACHE_SUBST(CXX)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51257
: 28632 |
28633
|
28680
|
28681
|
28682