The Samba-Bugzilla – Attachment 3083 Details for
Bug 5170
Cross compilation does not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH] Fix cross compilation, build mkrounding with CC_FOR_BUILD
rsync-3.0.0pre7-crosscompile.diff (text/plain), 1.47 KB, created by
Robert Schwebel
on 2008-01-01 07:33:05 UTC
(
hide
)
Description:
[PATCH] Fix cross compilation, build mkrounding with CC_FOR_BUILD
Filename:
MIME Type:
Creator:
Robert Schwebel
Created:
2008-01-01 07:33:05 UTC
Size:
1.47 KB
patch
obsolete
>--- > Makefile.in | 5 ++++- > configure.in | 12 ++++++++++++ > 2 files changed, 16 insertions(+), 1 deletion(-) > >Index: Makefile.in >=================================================================== >--- Makefile.in.orig >+++ Makefile.in >@@ -9,10 +9,13 @@ mandir=@mandir@ > > LIBS=@LIBS@ > CC=@CC@ >+CC_FOR_BUILD=@CC_FOR_BUILD@ > CFLAGS=@CFLAGS@ >+CFLAGS_FOR_BUILD=@CFLAGS_FOR_BUILD@ > CPPFLAGS=@CPPFLAGS@ > EXEEXT=@EXEEXT@ > LDFLAGS=@LDFLAGS@ >+LDFLAGS_FOR_BUILD=@LDFLAGS_FOR_BUILD@ > > INSTALLCMD=@INSTALL@ > INSTALLMAN=@INSTALL@ >@@ -85,7 +88,7 @@ rounding.h: mkrounding$(EXEEXT) > > mkrounding$(EXEEXT): mkrounding.c rsync.h > @sed '1,/^struct file_struct/d; /^}/,$$d' <$(srcdir)/rsync.h >mkrounding.h >- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -I. $(srcdir)/mkrounding.c >+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ -I. $(srcdir)/mkrounding.c > @rm mkrounding.h > > tls$(EXEEXT): $(TLS_OBJ) >Index: configure.in >=================================================================== >--- configure.in.orig >+++ configure.in >@@ -23,6 +23,18 @@ AC_PROG_INSTALL > AC_PROG_CC_STDC > AC_SUBST(SHELL) > >+# build tools for cross compiling >+if test "x$cross_compiling" = "xno"; then >+ CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}} >+else >+ CC_FOR_BUILD=${CC_FOR_BUILD-gcc} >+fi >+CFLAGS_FOR_BUILD=-O2 >+LDFLAGS_FOR_BUILD= >+AC_SUBST(CC_FOR_BUILD) >+AC_SUBST(CFLAGS_FOR_BUILD) >+AC_SUBST(LDFLAGS_FOR_BUILD) >+ > AC_DEFINE([_GNU_SOURCE], 1, > [Define _GNU_SOURCE so that we get all necessary prototypes]) >
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 5170
: 3083