From 0dedd1ae9ab2e08b63d40eccc9cb0cff75032ddf Mon Sep 17 00:00:00 2001 From: DRC Date: Fri, 2 Jul 2010 09:20:12 +0000 Subject: [PATCH] 64-bit support doesn't just exist in 10.6. git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@216 632fc199-4ca6-4c93-a231-07263d6284db --- BUILDING.txt | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/BUILDING.txt b/BUILDING.txt index afbf8226..f66d7b0b 100644 --- a/BUILDING.txt +++ b/BUILDING.txt @@ -14,9 +14,8 @@ Build Requirements -- NASM * 0.98 or later is required for a 32-bit build * NASM 2.05 or later is required for a 64-bit build - * NASM 2.07 or later is required for a 64-bit build on OS/X (10.6 "Snow - Leopard" or later.) This can be obtained from MacPorts - (http://www.macports.org/). + * NASM 2.07 or later is required for a 64-bit build on OS/X. This can be + obtained from MacPorts (http://www.macports.org/). The NASM 2.05 RPMs do not work on older Linux systems, such as Enterprise Linux 4. On such systems, you can easily build and install NASM 2.05 @@ -122,7 +121,7 @@ to the configure command line. Add - --host x86_64-apple-darwin10.0.0 NASM=/opt/local/bin/nasm + --host x86_64-apple-darwin NASM=/opt/local/bin/nasm to the configure command line. NASM 2.07 or later from MacPorts must be installed. @@ -138,9 +137,25 @@ Add to the configure command line. -32-bit Backward-Compatible Library Build on 64-bit OS/X +64-bit Backward-Compatible Library Build on 64-bit OS/X ------------------------------------------------------- +Add + + --host x86_64-apple-darwin NASM=/opt/local/bin/nasm \ + CFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk \ + -mmacosx-version-min=10.4 -O3' \ + CXXFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk \ + -mmacosx-version-min=10.4 -O3' \ + LDFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk \ + -mmacosx-version-min=10.4' + +to the configure command line. The OS X 10.4 SDK must be installed. + + +32-bit Backward-Compatible Library Build on OS/X +------------------------------------------------ + Add CFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk \ @@ -293,11 +308,11 @@ make dmg make udmg - On 64-bit OS X (10.6 "Snow Leopard" or later), this creates a version of the - Macintosh package/disk image which contains universal i386/x86-64 binaries. - The 32-bit fork of these binaries is backward compatible with OS X 10.4 and - later, whereas the 64-bit fork is compatible with OS X 10.6 and later. OS X - 10.4 compatibility SDK required. + On 64-bit OS X systems, this creates a version of the Macintosh package and + disk image which contains universal i386/x86-64 binaries. The 32-bit fork of + these binaries is backward compatible with OS X 10.4 and later. The 64-bit + fork can be made backward compatible as well by using the instructions in + the "Build Recipes" section. OS X 10.4 compatibility SDK required. make nsi