diff -urN ../nagios.orig/base/Makefile.in ./base/Makefile.in
--- ../nagios.orig/base/Makefile.in	2005-05-22 20:26:47.000000000 +0200
+++ ./base/Makefile.in	2005-05-22 20:27:33.000000000 +0200
@@ -42,7 +42,6 @@
 CGIURL=@cgiurl@
 HTMURL=@htmurl@
 
-MATHLIBS=-lm
 PERLLIBS=@PERLLIBS@
 PERLXSI_O=@PERLXSI_O@
 SOCKETLIBS=@SOCKETLIBS@
@@ -151,10 +150,10 @@
 	$(CC) $(CFLAGS) -c -o $@ $(XRDC)
 
 nagios: $(OBJS) $(OBJDEPS) $(SRC_INCLUDE)/nagios.h $(SRC_INCLUDE)/locations.h
-	$(CC) -o $@ $(OBJS) $(BROKER_LDFLAGS) $(LDFLAGS) $(PERLLIBS) $(MATHLIBS) $(SOCKETLIBS) $(THREADLIBS) $(BROKERLIBS) $(LIBS)
+	$(CC) -o $@ $(OBJS) $(BROKER_LDFLAGS) $(LDFLAGS) $(PERLLIBS) $(SOCKETLIBS) $(THREADLIBS) $(BROKERLIBS) $(LIBS)
 
 nagiostats: nagiostats.c $(SRC_INCLUDE)/locations.h
-	$(CC) $(CFLAGS) -o $@ nagiostats.c $(LDFLAGS) $(MATHLIBS) $(LIBS)
+	$(CC) $(CFLAGS) -o $@ nagiostats.c $(LDFLAGS) $(LIBS)
 
 $(OBJS): $(SRC_INCLUDE)/locations.h
 
diff -urN ../nagios.orig/nagios-base-nomath.diff ./nagios-base-nomath.diff
--- ../nagios.orig/nagios-base-nomath.diff	1970-01-01 01:00:00.000000000 +0100
+++ ./nagios-base-nomath.diff	2005-05-22 21:05:11.000000000 +0200
@@ -0,0 +1,24 @@
+diff -urN ../nagios.orig/base/Makefile.in ./base/Makefile.in
+--- ../nagios.orig/base/Makefile.in	2005-05-22 20:26:47.000000000 +0200
++++ ./base/Makefile.in	2005-05-22 20:27:33.000000000 +0200
+@@ -42,7 +42,6 @@
+ CGIURL=@cgiurl@
+ HTMURL=@htmurl@
+ 
+-MATHLIBS=-lm
+ PERLLIBS=@PERLLIBS@
+ PERLXSI_O=@PERLXSI_O@
+ SOCKETLIBS=@SOCKETLIBS@
+@@ -151,10 +150,10 @@
+ 	$(CC) $(CFLAGS) -c -o $@ $(XRDC)
+ 
+ nagios: $(OBJS) $(OBJDEPS) $(SRC_INCLUDE)/nagios.h $(SRC_INCLUDE)/locations.h
+-	$(CC) -o $@ $(OBJS) $(BROKER_LDFLAGS) $(LDFLAGS) $(PERLLIBS) $(MATHLIBS) $(SOCKETLIBS) $(THREADLIBS) $(BROKERLIBS) $(LIBS)
++	$(CC) -o $@ $(OBJS) $(BROKER_LDFLAGS) $(LDFLAGS) $(PERLLIBS) $(SOCKETLIBS) $(THREADLIBS) $(BROKERLIBS) $(LIBS)
+ 
+ nagiostats: nagiostats.c $(SRC_INCLUDE)/locations.h
+-	$(CC) $(CFLAGS) -o $@ nagiostats.c $(LDFLAGS) $(MATHLIBS) $(LIBS)
++	$(CC) $(CFLAGS) -o $@ nagiostats.c $(LDFLAGS) $(LIBS)
+ 
+ $(OBJS): $(SRC_INCLUDE)/locations.h
+ 
