Hello - I'm trying to compile with source level debugging enabled using the 1.0.0a distribution and I'm not having any luck at all. I would appreciate a clue if there is one. Note that I'm attempting to build a fat binary for the i386 and x86_64 architectures under Xcode control using the following commands:
x86_64 build:
./Configure debug-darwin-x86_64-cc --prefix=/opt/local
make clean
make build_libs
mv *.a build-x86_64
i386 build:
./Configure debug-darwin-i386-cc --prefix=/opt/local
make clean
make build_libs
mv *.a build-i386
Link fat binaries:
#!/usr/bin/perl
use Cwd;
{
@parts = split ('/', $ENV{'SRCROOT'});
pop (@parts);
$srcDir = join ('/', @parts);
chdir ($srcDir);
# merge the architecture libraries and create a fat binary.
foreach my $lib ('libssl.a', 'libcrypto.a') {
`lipo -create -output \"$srcDir/$lib\" \"$srcDir/build-x86_64/$lib\"
\"$srcDir/build-i386/$lib\"`;
`ranlib \"$srcDir/$lib\"`;
}
}
I have modified the debug-darwin-x86_64-cc target as follows:
"debug-darwin-x86_64-cc","cc:-arch x86_64 -O0 -g3 -DL_ENDIAN -DMD32_REG_T=int
-Wall::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:SIXTY_FOUR_BIT_LONG
RC4_CHAR RC4_CHUNK DES_INT
DES_UNROLL:${x86_64_asm}:macosx:dlfcn:darwin-shared:-fPIC -fno-common:-arch
x86_64 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
The debug-darwin-i386-cc target is (as I recall) unchanged and looks like this:
"debug-darwin-i386-cc","cc:-arch i386 -O0 -g3
-DL_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_INT
RC4_CHUNK DES_UNROLL BF_PTR:${x86_asm}:macosx:dlfcn:darwin-shared:-fPIC
-fno-common:-arch i386 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
Using the above, I'm unable to build a version that gives me source level debug
using gdb and I can't figure out why. Anyone?
Thanks,
Scott.
smime.p7s
Description: S/MIME cryptographic signature
