diff -urN sdcc.orig/sdas/as6808/Makefile.in sdcc/sdas/as6808/Makefile.in
---- sdcc.orig/sdas/as6808/Makefile.in 2010-03-23 21:59:47.000000000 +0100
-+++ sdcc/sdas/as6808/Makefile.in 2010-06-16 16:05:12.000000000 +0200
+--- sdcc.orig/sdas/as6808/Makefile.in 2010-08-03 22:09:57.016409271 +0200
++++ sdcc/sdas/as6808/Makefile.in 2010-08-03 22:11:20.631407187 +0200
@@ -36,7 +36,7 @@
CPPFLAGS = @CPPFLAGS@ -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/Util
OBJDIR = obj
+@@ -65,7 +65,7 @@
+ all: checkconf $(ASX)
+
+ $(ASX): $(ASOBJECTS)
+- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) -lm
+
+ # Compiling and installing everything and running test
+ # ----------------------------------------------------
diff -urN sdcc.orig/sdas/as8051/Makefile.in sdcc/sdas/as8051/Makefile.in
---- sdcc.orig/sdas/as8051/Makefile.in 2010-03-23 21:59:47.000000000 +0100
-+++ sdcc/sdas/as8051/Makefile.in 2010-06-16 16:05:12.000000000 +0200
+--- sdcc.orig/sdas/as8051/Makefile.in 2010-08-03 22:09:57.017408239 +0200
++++ sdcc/sdas/as8051/Makefile.in 2010-08-03 22:11:00.094409806 +0200
@@ -36,7 +36,7 @@
CPPFLAGS = @CPPFLAGS@ -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/Util
OBJDIR = obj
+@@ -65,7 +65,7 @@
+ all: checkconf $(ASX)
+
+ $(ASX): $(ASOBJECTS)
+- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) -lm
+
+ # Compiling and installing everything and running test
+ # ----------------------------------------------------
diff -urN sdcc.orig/sdas/asgb/Makefile.in sdcc/sdas/asgb/Makefile.in
---- sdcc.orig/sdas/asgb/Makefile.in 2010-03-23 21:59:47.000000000 +0100
-+++ sdcc/sdas/asgb/Makefile.in 2010-06-16 16:05:12.000000000 +0200
+--- sdcc.orig/sdas/asgb/Makefile.in 2010-08-03 22:09:57.017408239 +0200
++++ sdcc/sdas/asgb/Makefile.in 2010-08-03 22:11:09.430533066 +0200
@@ -36,7 +36,7 @@
CPPFLAGS = @CPPFLAGS@ -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/Util
OBJDIR = obj
+@@ -65,7 +65,7 @@
+ all: checkconf $(ASX)
+
+ $(ASX): $(ASOBJECTS)
+- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) -lm
+
+ # Compiling and installing everything and running test
+ # ----------------------------------------------------
diff -urN sdcc.orig/sdas/asz80/Makefile.in sdcc/sdas/asz80/Makefile.in
---- sdcc.orig/sdas/asz80/Makefile.in 2010-03-23 21:59:47.000000000 +0100
-+++ sdcc/sdas/asz80/Makefile.in 2010-06-16 16:05:12.000000000 +0200
+--- sdcc.orig/sdas/asz80/Makefile.in 2010-08-03 22:09:57.018408442 +0200
++++ sdcc/sdas/asz80/Makefile.in 2010-08-03 22:11:32.487532881 +0200
@@ -36,7 +36,7 @@
CPPFLAGS = @CPPFLAGS@ -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/Util
OBJDIR = obj
+@@ -65,7 +65,7 @@
+ all: checkconf $(ASX)
+
+ $(ASX): $(ASOBJECTS)
+- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) -lm
+
+ # Compiling and installing everything and running test
+ # ----------------------------------------------------
# Conditional build:
%bcond_without doc # don't rebuild documentation
-%define _snap_date 20100614
-%define _snap_id 5852
+%define _snap_date 20100803
+%define _snap_id 5906
Summary: C compiler for Intel 8051 and Zilog Z80
Summary(pl.UTF-8): Kompilator C dla Intel 8051 i Zilog Z80
License: GPL
Group: Development/Languages
Source0: http://sdcc.sourceforge.net/snapshots/sdcc-src/%{name}-src-%{_snap_date}-%{_snap_id}.tar.bz2
-# Source0-md5: 04249f4a3df1caa9b6fdad06084f1954
+# Source0-md5: e7c73e220fca113e254b8f6872c7010b
Patch0: %{name}-mcs51-pcall.patch
Patch1: %{name}-mcs51-stack-probe.patch
Patch2: %{name}-gstabs.patch