]> git.cworth.org Git - fips/commit
Compile both 32-bit and 64-bit versions of the wrapper library.
authorCarl Worth <cworth@cworth.org>
Wed, 24 Apr 2013 00:25:13 +0000 (17:25 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 24 Apr 2013 00:25:13 +0000 (17:25 -0700)
commitb32aa136d3e51a250e58c0fc28162b5e5fd52f67
tree07b99125e5349dca48c25f55ad8e35aea674f1a2
parent1f4014b53a4dc77768f3998a6fd3b67024431fa3
Compile both 32-bit and 64-bit versions of the wrapper library.

This is intended to make it transparent to run fips with either a
32-bit or a 64-bit program. And it does do that once you successfully
build both versions of the library.

Actually being able to build both versions of the library is a little
tricky though. Here are some of the tricks:

1. You will need to have installed both a 32-bit and a 64-bit .so file
   for each dependent library, (currently libelf and libtalloc).

   The current configure script doesn't check for both versions, so
   you don't get a lot of guidance here. And that's because...

2. On Debian, at least, one cannot currently install both
   libtalloc-dev:amd64 and libtalloc-dev:i386 at the same time.

   Contrast with libelf-dev:i386 and libelf-dev:amd64 which work just
   fine when installed simultaneously.

One can work around this by just install libtalloc-dev:amd64 and then
manually creating the link you need for the i386 package. Namely:

sudo ln -s libelf.so.1 /usr/lib/i386-linux-gnu/libelf.so
.gitignore
Makefile.local
configure
execute.c
execute.h
fips.c