3 @@ -209,7 +209,7 @@ static int check_for_privs(void){
7 -static void init_libproc(void) __attribute__((constructor));
8 +static void init_libproc(void) __attribute__((constructor(200)));
9 static void init_libproc(void){
10 have_privs = check_for_privs();
11 // ought to count CPUs in /proc/stat instead of relying
14 @@ -33,7 +33,7 @@ void display_version(void) {
16 int linux_version_code;
18 -static void init_Linux_version(void) __attribute__((constructor));
19 +static void init_Linux_version(void) __attribute__((constructor(100)));
20 static void init_Linux_version(void) {
21 static struct utsname uts;
22 int x = 0, y = 0, z = 0; /* cleared in case sscanf() < 3 */
25 @@ -76,7 +76,7 @@ proc/$(ANAME): $(LIBOBJ)
27 #proc/$(SONAME): proc/library.map
28 proc/$(SONAME): $(LIBOBJ)
29 - $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) -shared -Wl,-soname,$(SONAME) -Wl,--version-script=proc/library.map -o $@ $^ -lc
30 + $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) -shared -Wl,-soname,$(SONAME) -Wl,--version-script=proc/library.map -o $@ $(sort $^) -lc
33 # AUTOMATIC DEPENDENCY GENERATION -- GCC AND GNUMAKE DEPENDENT