1https://bugs.gentoo.org/303120
2
3make sure the linux version constructor runs before the libproc constructor
4since the latter uses variables setup by the former
5
6fix by Chris Coleman
7
8Index: proc/version.c
9===================================================================
10RCS file: /cvsroot/procps/procps/proc/version.c,v
11retrieving revision 1.7
12diff -u -p -r1.7 version.c
13--- a/proc/version.c 9 Feb 2003 07:27:16 -0000 1.7
14+++ b/proc/version.c 14 Nov 2010 00:22:44 -0000
15@@ -33,7 +33,7 @@ void display_version(void) {
16
17 int linux_version_code;
18
19-static void init_Linux_version(void) __attribute__((constructor));
20+static void init_Linux_version(void) __attribute__((constructor(100)));
21 static void init_Linux_version(void) {
22 static struct utsname uts;
23 int x = 0, y = 0, z = 0; /* cleared in case sscanf() < 3 */