[Expat-discuss] How do I compile libexpat as x86_64?
John Musbach
johnmusbach1 at gmail.com
Sun Oct 4 20:25:36 CEST 2009
On Sun, Oct 4, 2009 at 10:27 AM, Dan Nicholson <dbn.lists at gmail.com> wrote:
> 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.
Nope:
bash-3.2$ file /opt/local/lib/libexpat.dylib
/opt/local/lib/libexpat.dylib: Mach-O dynamically linked shared library i386
If it helps any I'm running Mac OS X 10.6.1, and what I'm trying to do
is compile the libexpat library as x86_64 to satisfy some macports
dependency requirements that it can't on its own resolve. When I ls
the /opt/local/lib directory I see that the only changes made after I
install libexpat is the libexpat.a and libexpat.la files:
bash-3.2$ ls -lah /opt/local/lib/libexpat*
lrwxr-xr-x 1 root admin 16B Nov 30 2008
/opt/local/lib/libexpat.0.dylib -> libexpat.1.dylib
-rwxr-xr-x 2 root admin 143K Nov 24 2007
/opt/local/lib/libexpat.1.5.2.dylib
lrwxr-xr-x 1 root admin 20B Nov 30 2008
/opt/local/lib/libexpat.1.dylib -> libexpat.1.5.2.dylib
-rw-r--r-- 1 root admin 242K Oct 4 14:09 /opt/local/lib/libexpat.a
lrwxr-xr-x 1 root admin 20B Nov 30 2008
/opt/local/lib/libexpat.dylib -> libexpat.1.5.2.dylib
-rwxr-xr-x 1 root admin 743B Oct 4 14:09 /opt/local/lib/libexpat.la
But I need the libexpat.dylib file to be made x86_64, how do I do
this? Is this something special to Mac OS X that requires a special
routine to accomplish? Thanks!
--
Best Regards,
John Musbach
More information about the Expat-discuss
mailing list