[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnu-libiconv] libiconv on snow leopard
From: |
Bruno Haible |
Subject: |
Re: [bug-gnu-libiconv] libiconv on snow leopard |
Date: |
Sun, 11 Oct 2009 16:39:01 +0200 |
User-agent: |
KMail/1.9.9 |
> Hi, I'm trying to compile libiconv on snow leopard but it doesn't work
> (I think because snow leopard is 64bit). There's a beta version that
> works with this OS?
Hi,
It is impossible to help you precisely if you don't say
- what commands you attempted in order to compile libiconv,
- what results you got ("it doesn't work" is a very very broad
description, you know).
But my guess is that you have overlooked this section in the INSTALL.generic
file:
-----------------------------------------------------------------------------
On MacOS X 10.5 and later systems, you can create libraries and
executables that work on multiple system types--known as "fat" or
"universal" binaries--by specifying multiple '-arch' options to the
compiler but only a single '-arch' option to the preprocessor. Like
this:
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
CPP="gcc -E" CXXCPP="g++ -E"
This is not guaranteed to produce working output in all cases. You
may have to build one architecture at a time and combine the results
using the 'lipo' tool if you have problems.
-----------------------------------------------------------------------------
Bruno