[cups.development] How to generate 64bit and debuglibcups.2.dylib?

Michael R Sweet msweet at apple.com
Fri Sep 26 22:44:16 PDT 2008

keens312 wrote:
>> keens312 wrote:
>>> Hi Michael,
>>> With CUPS 1.4svn, I would like to compile a version that support 64bit lib and containing debug symbol.
>>> ./configure --enable-64bit --enable-debug
>>> make
>>> file cups/libcups.2.dylib
>>> shows that Mach-O dynamically linked shared library i386
>>> What's wrong with my setting? I would like to see it support 64bit arch.
>> --enable-64bit is for platforms that need separate binaries for 32-bit
>> and 64-bit.
>> Mac OS X is different since it uses the "Mach-O" object file format
>> which supports multiple architectures per file.  Use:
>>      ./configure --enable-debug --with-archflags="-arch i386 -arch ppc
>> -arch x86_64"
>> --
>> ______________________________________________________________________
>> Michael R Sweet                        Senior Printing System Engineer
> Hi Michael,
> It works for CUPS 1.4svn, but not work for older versions such as CUPS-1.1.23 or Darwin CUPS 62.3 and CUPS86.
> For older CUPS source, i can only compile for one arch. any suggestion?

CFLAGS="-arch i386 -arch ppc" LDFLAGS="-arch i386 -arch ppc" 
DSOFLAGS="-arch i386 -arch ppc" ./configure ...

Michael R Sweet                        Senior Printing System Engineer

More information about the cups-devel mailing list