Migrate building progs/tcapsh-static to sudotest

This addresses:

  https://bugzilla.kernel.org/show_bug.cgi?id=210135
  https://bugs.busybox.net/show_bug.cgi?id=13296

Some notes on expectations:

When building DYNAMIC=yes folk want to avoid depending on a
static libc.a file in their build tree. The best we can do is
to move building static test tool objects to sudotest.

  make DYNAMIC=yes clean all test

will build the progs binaries and run the tests with all dynamic
linking. It will, however, build the libcap.a etc libraries too
even though they are not used for linking.

  make DYNAMIC=no clean all test

will build the progs binaries and run the tests with all static
linking. It will, however, build the libcap.so etc libraries too
even though they are not used for linking.

  make SHARED=no clean all test

will build and link progs and test binaries statically against
libcap.a. No shared libraries (libcap.so etc) will be built.

In all cases, whether linked against or not, libcap.a is built.

Signed-off-by: Andrew G. Morgan <[email protected]>
1 file changed