# HG changeset patch # User Michael Schloh von Bennewitz # Date 1254580238 -7200 # Node ID 08fe3f7e4b43350b934a26c30ba76ddbcef67246 # Parent d925eacf1cead624350481042b38fcb1f75dd740 Document building fat object files with the hand made buildconf. diff -r d925eacf1cea -r 08fe3f7e4b43 Cryptlib.pmdoc/README.txt --- a/Cryptlib.pmdoc/README.txt Mon Aug 10 16:10:39 2009 +0200 +++ b/Cryptlib.pmdoc/README.txt Sat Oct 03 16:30:38 2009 +0200 @@ -43,6 +43,36 @@ specified within the package specification. These references are listed in the following manifest, and must be manually placed. +The defective build configuration requires changes: +Index: crypt/osconfig.h +--- crypt/osconfig.h.orig 2009-08-04 20:54:46.000000000 +0200 ++++ crypt/osconfig.h 2009-08-04 20:53:28.000000000 +0200 +@@ -231,7 +231,6 @@ + #else + #define L_ENDIAN + #endif +- #define B_ENDIAN + #define BN_LLONG + #define BF_PTR + #define DES_RISC1 + +Building a universal binary requires changes: +Index: crypt/osconfig.h +--- crypt/osconfig.h.orig 2009-08-11 12:42:04.000000000 +0200 ++++ crypt/osconfig.h 2009-08-11 12:42:47.000000000 +0200 +@@ -553,7 +553,7 @@ + #if !defined( _CRAY ) && !defined( L_ENDIAN ) && !defined( B_ENDIAN ) + #error You need to add system-specific configuration settings to osconfig.h + #endif /* Endianness not defined */ +-#ifdef CHECK_ENDIANNESS /* One-off check in des_enc.c */ ++#if ( defined( CHECK_ENDIANNESS ) && !defined( UNIVERSAL_BINARY ) ) /* One-off check in des_enc.c */ + #undef _CONFIG_DEFINED + /* Including crypt.h at this point violates the normal include order + because we've already included config.h which normally depends on + +To build a fat library with IA32, X86_64, PPC, and PPC64 object code: +make LDFLAGS='-isysroot /Developer/SDKs/MacOSX10.5.sdk' CFLAGS='-c -isysroot /Developer/SDKs/MacOSX10.5.sdk -Os -mmacosx-version-min=10.5 -arch ppc -arch ppc64 -arch i386 -arch x86_64 -DUNIVERSAL_BINARY -D__UNIX__ -DNDEBUG -I.' + Filesystem Root (fsrt) Manifest ------------------------------- drwxr-xr-x 3 root wheel 102 Aug 4 21:16 fsrt