--- gkrellm-2.3.4.orig/server/Makefile	2008-10-03 23:52:48.000000000 +0200
+++ gkrellm-2.3.4/server/Makefile	2011-05-17 11:34:14.926610183 +0200
@@ -26,7 +26,7 @@ SMANDIR ?= $(INSTALLROOT)/share/man/man1
 MANMODE ?= 644
 MANDIRMODE ?= 755
 INSTALL ?= install
-LINK_FLAGS ?= -Wl,-E
+LINK_FLAGS ?= -Wl,-E $(LDFLAGS)
 EXTRAOBJS =
 
 SHARED_PATH = ../shared
@@ -109,15 +109,15 @@ endif
 
 override CC += -Wall $(FLAGS)
 
-OS_NAME=$(shell uname -s)
-OS_RELEASE=$(shell uname -r)
+OS_NAME=Linux
+OS_RELEASE=2.6
 
 OBJS = main.o monitor.o mail.o plugins.o glib.o utils.o sysdeps-unix.o log.o
 
 all:	gkrellmd
 
 gkrellmd: $(OBJS) $(EXTRAOBJS)
-	$(CC) $(OBJS) $(EXTRAOBJS) -o gkrellmd $(LIBS) $(LINK_FLAGS)
+	$(CC) $(OBJS) $(EXTRAOBJS) -o gkrellmd $(LINK_FLAGS) $(LIBS)
 
 static: $(OBJS) $(EXTRAOBJS)
 	$(CC) $(OBJS) $(EXTRAOBJS) -o gkrellmd.static -static \
