[GRASS-user] Re: Patched version of libjpeg-6b for 32-bit and 64-bit architectures

William Kyngesburye woklist at kyngchaos.com
Tue Sep 30 17:43:20 EDT 2008


I have libjpeg build instructions that take care of 32+64 bits.  And  
my UnixImageIO framework includes libjpeg 32+64bits.  There's actually  
nothing wrong in the source for 64bit support (that version you sent  
seems to be newer than I thought was available, but none of the new  
code looks like it has anything to do with 64bit fixes), it's just the  
configuration and compilation that needs a little help.

The main problem is that the libtool included is so old (v1.3.5), it  
doesn't understand the OSX -arch flags.  And it's too old to *easily*  
update libtool, though some autotools whiz probably could.

I'm actually surprised this works for you - libtool 1.3.5 should  
quietly drop those arch flags during compilation (or complain).  My  
build instructions use a different approach, using a custom gcc  
wrapper to fool libtool into not seeing the flags.  Though I have been  
considering a custom makefile, which should be easy enough, so I don't  
have to depend on the gcc wrapper.

On Sep 30, 2008, at 3:58 PM, Elvis Dowson wrote:

> In order to build it , open a terminal window and type the following  
> commands:
>
> MACOSX_DEPLOYMENT_TARGET=10.5
> CFLAGS="-O2 -I$(srcdir) -arch ppc -arch ppc64 -arch i386 -arch  
> x86_64 -g -Os -pipe -no-cppprecomp"
> CCFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe"
> CXXFLAGS="-arch ppc -arch ppc64 - arch i386 -arch x86_64 -g -Os -pipe"
> LDFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind_at_load"
> ./configure --enable-shared
>
> Modify the following entries in the automatically generated Makefile
>
> CFLAGS= -O2  -I$(srcdir) -arch ppc -arch ppc64 -arch i386 -arch  
> x86_64 -g -Os -pipe -no-cppprecomp
> CCFLAGS= -arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe
> CXXFLAGS= -arch ppc -arch ppc64 - arch i386 -arch x86_64 -g -Os -pipe
> LDFLAGS= -arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind_at_load
>

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Mon Dieu! but they are all alike.  Cheating, murdering, lying,  
fighting, and all for things that the beasts of the jungle would not  
deign to possess - money to purchase the effeminate pleasures of  
weaklings.  And yet withal bound down by silly customs that make them  
slaves to their unhappy lot while firm in the belief that they be the  
lords of creation enjoying the only real pleasures of existence....

- the wisdom of Tarzan




More information about the grass-user mailing list