para_server: Don't link with stat.o.
authorAndre Noll <maan@systemlinux.org>
Sat, 4 Jul 2009 17:23:00 +0000 (19:23 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 4 Jul 2009 17:23:00 +0000 (19:23 +0200)
We linked stat.o only because command.o needs the status item array.
Definining this array in command.c allows to link para_server without
stat.o.

command.c
configure.ac

index becd561b939f775427b552b831cc3413fb433fcb..f8b5e4ee50f47af295c2e4d2689d30fc031eb44f 100644 (file)
--- a/command.c
+++ b/command.c
@@ -44,6 +44,7 @@ extern struct misc_meta_data *mmd;
 extern struct sender senders[];
 int send_afs_status(struct rc4_context *rc4c, int parser_friendly);
 
+const char *status_item_list[] = {STATUS_ITEM_ARRAY};
 
 static void dummy(__a_unused int s)
 {
index fde72f2aa795676691f741392bfba87569458944..f3d5732554556dba2709e83f26554e7e1366de37 100644 (file)
@@ -125,7 +125,7 @@ afh_ldflags=""
 
 server_cmdline_objs="server.cmdline server_command_list afs_command_list"
 server_errlist_objs="server afh_common mp3_afh vss command net string signal
-       time daemon stat crypt http_send close_on_fork
+       time daemon crypt http_send close_on_fork
        ipc dccp_send fd user_list chunk_queue afs aft mood score attribute
        blob playlist sha1 sched acl send_common udp_send color fec"
 server_ldflags="-losl"