[Top][All Lists]

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

Cross-compiling libintl

From: Ryan Govostes
Subject: Cross-compiling libintl
Date: Mon, 30 Jun 2008 20:51:52 -0400


I'm trying to build libintl for a PowerPC host (powerpc-apple-darwin8) from an i386 machine with gcc 4.2.1 (i686-apple-darwin10-gcc-4.2.1) under Mac OS X. When I run file on the resultant .dylib, I expect to see that it is built for PowerPC, but in fact it is built for i386:

libintl.8.dylib: Mach-O dynamically linked shared library i386

So, it looks like the configuration settings don't take and it's building for the native architecture instead.

CFLAGS=-mmacosx-version-min=10.4 -isysroot /Developer/SDKs/ MacOSX10.4u.sdk -arch ppc
LDFLAGS=-mmacosx-version-min=10.4 -headerpad_max_install_names -Wl,- syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc

configure --disable-static --enable-shared --host=powerpc-apple-darwin8
make && make install

Is there a patch for the Makefile which will correctly build libintl for the host architecture?

Ryan Govostes

reply via email to

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