[Expat-discuss] How do I compile libexpat as x86_64?

Dan Nicholson dbn.lists at gmail.com
Sun Oct 4 16:27:46 CEST 2009


On Sat, Oct 3, 2009 at 6:01 PM, John Musbach <johnmusbach1 at gmail.com> wrote:
> I've downloaded the latest sources from sourceforge (2.0.1) and have
> tried configuring the build with:
>
> ./configure --build=x86_64 --host=x86_64 --libdir=/opt/local/lib
> CPPFLAGS="-DXML_LARGE_SIZE -m64"
>
> but ultimately all I get is:
>
> bash-3.2$ file /opt/local/lib/libexpat.dylib
> /opt/local/lib/libexpat.dylib: Mach-O dynamically linked shared
> library i386
>
> what gives???

I think you want to have the -m64 in CFLAGS and not CPPFLAGS. Then it
will also be used when linking the library, and not just when
preprocessing the C files.

--
Dan


More information about the Expat-discuss mailing list