Document building fat object files with the hand made buildconf. default tip

Sat, 03 Oct 2009 16:30:38 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Oct 2009 16:30:38 +0200
changeset 9
08fe3f7e4b43
parent 8
d925eacf1cea

Document building fat object files with the hand made buildconf.

Cryptlib.pmdoc/README.txt file | annotate | diff | comparison | revisions
     1.1 --- a/Cryptlib.pmdoc/README.txt	Mon Aug 10 16:10:39 2009 +0200
     1.2 +++ b/Cryptlib.pmdoc/README.txt	Sat Oct 03 16:30:38 2009 +0200
     1.3 @@ -43,6 +43,36 @@
     1.4  specified within the package specification. These references are
     1.5  listed in the following manifest, and must be manually placed.
     1.6  
     1.7 +The defective build configuration requires changes:
     1.8 +Index: crypt/osconfig.h
     1.9 +--- crypt/osconfig.h.orig	2009-08-04 20:54:46.000000000 +0200
    1.10 ++++ crypt/osconfig.h	2009-08-04 20:53:28.000000000 +0200
    1.11 +@@ -231,7 +231,6 @@
    1.12 +   #else
    1.13 + 	#define L_ENDIAN
    1.14 +   #endif
    1.15 +-  #define B_ENDIAN
    1.16 +   #define BN_LLONG
    1.17 +   #define BF_PTR
    1.18 +   #define DES_RISC1
    1.19 +
    1.20 +Building a universal binary requires changes:
    1.21 +Index: crypt/osconfig.h
    1.22 +--- crypt/osconfig.h.orig	2009-08-11 12:42:04.000000000 +0200
    1.23 ++++ crypt/osconfig.h	2009-08-11 12:42:47.000000000 +0200
    1.24 +@@ -553,7 +553,7 @@
    1.25 + #if !defined( _CRAY ) && !defined( L_ENDIAN ) && !defined( B_ENDIAN )
    1.26 +   #error You need to add system-specific configuration settings to osconfig.h
    1.27 + #endif /* Endianness not defined */
    1.28 +-#ifdef CHECK_ENDIANNESS		/* One-off check in des_enc.c */
    1.29 ++#if ( defined( CHECK_ENDIANNESS ) && !defined( UNIVERSAL_BINARY ) )		/* One-off check in des_enc.c */
    1.30 +   #undef _CONFIG_DEFINED
    1.31 + 	/* Including crypt.h at this point violates the normal include order 
    1.32 + 	   because we've already included config.h which normally depends on 
    1.33 +
    1.34 +To build a fat library with IA32, X86_64, PPC, and PPC64 object code:
    1.35 +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.'
    1.36 +
    1.37  Filesystem Root (fsrt) Manifest
    1.38  -------------------------------
    1.39  drwxr-xr-x  3 root  wheel  102 Aug  4 21:16 fsrt

mercurial