Update kernel version to 6.8 in header constant tests
[glibc.git] / support / links-dso-program.cc
blob4bc2411086dc50fd2f63132af4cd4037067114f8
1 #include <iostream>
3 /* makedb needs selinux dso's. */
4 #ifdef HAVE_SELINUX
5 # include <selinux/selinux.h>
6 #endif
8 using namespace std;
10 /* The purpose of this file is to indicate to the build system which
11 shared objects need to be copied into the testroot, such as gcc or
12 selinux support libraries. This program is never executed, only
13 scanned for dependencies on shared objects, so the code below may
14 seem weird - it's written to survive gcc optimization and force
15 such dependencies.
18 int
19 main (int argc, char **argv)
21 /* Complexity to keep gcc from optimizing this away. */
22 cout << (argc > 1 ? argv[1] : "null");
23 #ifdef HAVE_SELINUX
24 /* This exists to force libselinux.so to be required. */
25 cout << "selinux " << is_selinux_enabled ();
26 #endif
27 return 0;