Blame support/links-dso-program.cc

Packit Service ada5e0
#include <iostream>
Packit Service ada5e0
Packit Service c70b59
/* makedb needs selinux dso's.  */
Packit Service c70b59
#ifdef HAVE_SELINUX
Packit Service c70b59
# include <selinux/selinux.h>
Packit Service c70b59
#endif
Packit Service c70b59
Packit Service ada5e0
using namespace std;
Packit Service ada5e0
Packit Service c70b59
/* The purpose of this file is to indicate to the build system which
Packit Service c70b59
   shared objects need to be copied into the testroot, such as gcc or
Packit Service c70b59
   selinux support libraries.  This program is never executed, only
Packit Service c70b59
   scanned for dependencies on shared objects, so the code below may
Packit Service c70b59
   seem weird - it's written to survive gcc optimization and force
Packit Service c70b59
   such dependencies.
Packit Service c70b59
*/
Packit Service c70b59
Packit Service ada5e0
int
Packit Service ada5e0
main (int argc, char **argv)
Packit Service ada5e0
{
Packit Service ada5e0
  /* Complexity to keep gcc from optimizing this away.  */
Packit Service ada5e0
  cout << (argc > 1 ? argv[1] : "null");
Packit Service c70b59
#ifdef HAVE_SELINUX
Packit Service c70b59
  /* This exists to force libselinux.so to be required.  */
Packit Service c70b59
  cout << "selinux " << is_selinux_enabled ();
Packit Service c70b59
#endif
Packit Service ada5e0
  return 0;
Packit Service ada5e0
}