]> git.cworth.org Git - fips/commit
configure: Fully separate CFLAGS/LDFLAGS between fips and libfips
authorCarl Worth <cworth@cworth.org>
Fri, 14 Jun 2013 06:29:07 +0000 (23:29 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 14 Jun 2013 06:29:07 +0000 (23:29 -0700)
commite42d9f224a4ef2784f8fd43f9f4f5c593a7ddd57
tree246d407754d6a6330b156efb37bbb3e5176dc290
parent4ed3210133fb9f990c3d34fd04619867656c74e3
configure: Fully separate CFLAGS/LDFLAGS between fips and libfips

The top-level program and the underlying library have fundamentally
different requirements. For example, the top-level program needs to
link against libtalloc and libelf but the library does not.

Previously, the necessary flags for both were mixed together in
CONFIGURE_CFLAGS and CONFIGURE_LDFLAGS. This caused the library to
unnecessarily link against libtalloc and libelf, (which in turn caused
problems since the library is compiled as both 32-bit and 64-bit but
the system may not provide both 32- and 64-bit versions of these
libraries).

By splitting things up into separate FIPS_LDFLAGS vs. LIBFIPS_LDFLAGS,
etc. we can keep the dependencies down to what is really required and
eliminate several sprious failure cases.
Makefile.local
configure