The Samba-Bugzilla – Attachment 3848 Details for
Bug 6011
[PATCH] Fix autotools cross-compile support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix autotools
0001-Fix-cross-compiling-with-autotools.patch (text/plain), 1.41 KB, created by
Diego Pettenò
on 2009-01-03 18:07:25 UTC
(
hide
)
Description:
Patch to fix autotools
Filename:
MIME Type:
Creator:
Diego Pettenò
Created:
2009-01-03 18:07:25 UTC
Size:
1.41 KB
patch
obsolete
>From 9b9595a725ca8992dbebb05f86123b0e09918bba Mon Sep 17 00:00:00 2001 >From: =?utf-8?q?Diego=20E.=20'Flameeyes'=20Petten=C3=B2?= <flameeyes@gmail.com> >Date: Sun, 4 Jan 2009 01:04:31 +0100 >Subject: [PATCH] Fix cross-compiling with autotools. > >The AC_CANONICAL_TARGET macro and the $target_os variables are used for the >target of compilers and other code-generation tools, and should not be used >during cross-compile of generic software. Replace them with >AC_CANONICAL_HOST and $host_os instead, as they should have been from the >start. > >For a breakdown of what host, build and target machines are, please see >http://blog.flameeyes.eu/s/canonical-target . >--- > configure.in | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/configure.in b/configure.in >index c607d0b..355f601 100644 >--- a/configure.in >+++ b/configure.in >@@ -13,7 +13,7 @@ AC_DEFINE_UNQUOTED(RSYNC_VERSION, ["$RSYNC_VERSION"], [rsync release version]) > > LDFLAGS=${LDFLAGS-""} > >-AC_CANONICAL_TARGET([]) >+AC_CANONICAL_HOST > > dnl Checks for programs. > AC_PROG_CC >@@ -762,7 +762,7 @@ rsync_cv_HAVE_SECURE_MKSTEMP=yes, > rsync_cv_HAVE_SECURE_MKSTEMP=no, > rsync_cv_HAVE_SECURE_MKSTEMP=cross)]) > if test x"$rsync_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then >- case $target_os in >+ case $host_os in > hpux*) > dnl HP-UX has a broken mkstemp() implementation they refuse to fix, > dnl so we noisily skip using it. See HP change request JAGaf34426 >-- >1.6.0.6 >
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 Raw
Actions:
View
Attachments on
bug 6011
: 3848