Fwd: Re: setting LD_LIBRARY_PATH when cross-compiling
2012-02-09 17:58:45 GMT
On 9 February 2012 16:53, Patrick Monnerat <Patrick.Monnerat <at> datasphere.ch> wrote:
>
>
> Rob Ward wrote:
>
> > Comments on if this approach will/won't work or if it could
> > be modified would be appreciated, and if it is completely
> > wrong please tell me, I won't take it personally 
>
> I think the approach is good, because it lets "configure" do the job.
> However I remember some similar problem with the "insight" debugger when
> compiling on a [3456]86 architecture, targetting another architecture in
> the same family (i.e.: cross-compiling for i686 on a i386): in this
> case, configure "thinks" we are cross-compiling even if the binary code
> compatibility is assured. I had to set an external mess to avoid this...
> But it was long ago... should be tested with more recent autotools.
>
> Patrick
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
Hi Patrick,
Thanks for that, not sure how well it detects that type of situation, I guess this just needs testing on lots of different machines.
I have additionally attached a change to add output to ./configure when run to show if cross compiling in an easy to read manner.
Further comments on this welcome(as are tests in cross compile environments as it is still untested)
Cheers,
Rob
--
------------------------------
Rob Ward
www.rob-ward.co.uk
From cf59a674fb60ea702980b154e1f98e3c8a59adb1 Mon Sep 17 00:00:00 2001
From: Rob Ward <rob <at> rob-ward.co.uk>
Date: Thu, 9 Feb 2012 17:42:29 +0000
Subject: [PATCH 2/2] Adds Cross Compiling flag to output from configure
Adds Cross Compiling : ${cross_compiling} to the list that is output from configure
---
configure.ac | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 7f74dca..7225e0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3310,6 +3310,7 @@ AC_MSG_NOTICE([Configured to build curl/libcurl:
Host setup: ${host}
Install prefix: ${prefix}
Compiler: ${CC}
+ Cross Compiling: ${cross_compiling}
SSL support: ${curl_ssl_msg}
SSH support: ${curl_ssh_msg}
zlib support: ${curl_zlib_msg}
--
--
1.7.1
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
RSS Feed