bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnu-libiconv] libiconv in 64 bits?


From: Bruno Haible
Subject: Re: [bug-gnu-libiconv] libiconv in 64 bits?
Date: Thu, 16 Dec 2010 01:40:34 +0100
User-agent: KMail/1.9.9

Casado López Luis Enrique wrote:
> I need to know  if the libiconv library in my solaris is  in 32 or 64 bits
> because  when we compile something we receive some  error message

$ file .../libiconv.so*

should tell you.

> Another  favor could you please give to me how can install  liviconv
> in 64 bits.    

Typical configuration for a 32-bit build:
  $ ./configure CC="gcc -m32" CPPFLAGS=-Wall \
                --prefix=/usr/local --libdir=/usr/local/lib

Typical configuration for a 64-bit build:
  $ ./configure CC="gcc -m64" CPPFLAGS=-Wall \
                --prefix=/usr/local --libdir=/usr/local/lib/64

or if you use the vendor's compiler:

Typical configuration for a 32-bit build:
  $ ./configure CC="cc -O" \
                --prefix=/usr/local --libdir=/usr/local/lib

Typical configuration for a 64-bit build:
  $ ./configure CC="cc -xarch=amd64 -O" \
                --prefix=/usr/local --libdir=/usr/local/lib/64

The "/64" suffix for the --libdir is specific to Solaris. On other OSes
the conventions for bi-arch systems are different.

Also, don't forget to add necessary -I options to CPPFLAGS and -L options
to LDFLAGS.

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]