[nanomsg] Re: Trouble building 32-/64- bit libnanomsg.so on 64-/32- bit systems

  • From: "Dmitri Toubelis" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "dmitri.toubelis@xxxxxxxxxxx" for DMARC)
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Thu, 30 Jul 2015 12:09:46 -0400 (EDT)

Have you tried running configure with "--host" param? I think this is the right
way of crosscompiling with autotools. Here is the link:

https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Hosts-and-Cross_002dCompilation.html


----- Original Message -----

From: "Bilen Ahmet" <Bilen.Ahmet@xxxxxxxxxxxxxx>
To: nanomsg@xxxxxxxxxxxxx
Sent: Thursday, July 30, 2015 4:59:14 AM
Subject: [nanomsg] Trouble building 32-/64- bit libnanomsg.so on
64-/32- bit systems

Hi,

I’m trying to build nanomsg on Solaris and Linux, each for both
32-bit and 64-bit. The trouble is I only have a 32-bit Solaris build
machines and a 64-bit Linux build machine, so when I follow the
standard process for building nanomsg I get 32-bit libnanomsg.so on
Solaris and 64-bit libnanomsg.so on Linux.

I thought I could work around this, either by exporting
CFLAGS=”-m32”/CFLAGS=”-m64” and then following the standard process,
or by replacing the ./configure call with CFLAGS=”-m32” ./configure
or CFLAGS=”-m64” ./configure (I’ve also tried this with the
–disable-dependency-tracking option, in case that was needed), but
neither of these approaches has resulted in any difference to the
resulting libnanomsg.so produced (either in .libs or in
/usr/local/lib/).

Any help you could offer me for this would be greatly appreciated.

Thanks,
Bilen Ahmet

Other related posts: