Root/tools/sdcc/patches/200-fix_order_of_linking.patch

1diff --git a/sdcc/sdas/as6808/Makefile.in b/sdcc/sdas/as6808/Makefile.in
2index 5041265..0b8732e 100644
3--- a/sdas/as6808/Makefile.in
4+++ b/sdas/as6808/Makefile.in
5@@ -36,7 +36,8 @@ VPATH = @srcdir@
6 
7 CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/Util
8 CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS)
9-LDFLAGS = @LDFLAGS@ -lm
10+LDFLAGS = @LDFLAGS@
11+LIBS = -lm
12 
13 OBJDIR = obj
14 
15@@ -65,7 +66,7 @@ transform = @program_transform_name@
16 all: checkconf $(ASX)
17 
18 $(ASX): $(ASOBJECTS)
19- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS)
20+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) $(LIBS)
21 
22 # Compiling and installing everything and running test
23 # ----------------------------------------------------
24diff --git a/sdcc/sdas/as8051/Makefile.in b/sdcc/sdas/as8051/Makefile.in
25index 8fa5946..fde3001 100644
26--- a/sdas/as8051/Makefile.in
27+++ b/sdas/as8051/Makefile.in
28@@ -36,7 +36,8 @@ VPATH = @srcdir@
29 
30 CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/Util
31 CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS)
32-LDFLAGS = @LDFLAGS@ -lm
33+LDFLAGS = @LDFLAGS@
34+LIBS = -lm
35 
36 OBJDIR = obj
37 
38@@ -65,7 +66,7 @@ transform = @program_transform_name@
39 all: checkconf $(ASX)
40 
41 $(ASX): $(ASOBJECTS)
42- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS)
43+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) $(LIBS)
44 
45 # Compiling and installing everything and running test
46 # ----------------------------------------------------
47diff --git a/sdcc/sdas/asgb/Makefile.in b/sdcc/sdas/asgb/Makefile.in
48index 2763b3f..f9afb23 100644
49--- a/sdas/asgb/Makefile.in
50+++ b/sdas/asgb/Makefile.in
51@@ -36,7 +36,8 @@ VPATH = @srcdir@
52 
53 CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/Util
54 CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS)
55-LDFLAGS = @LDFLAGS@ -lm
56+LDFLAGS = @LDFLAGS@
57+LIBS = -lm
58 
59 OBJDIR = obj
60 
61@@ -65,7 +66,7 @@ transform = @program_transform_name@
62 all: checkconf $(ASX)
63 
64 $(ASX): $(ASOBJECTS)
65- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS)
66+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) $(LIBS)
67 
68 # Compiling and installing everything and running test
69 # ----------------------------------------------------
70diff --git a/sdcc/sdas/asz80/Makefile.in b/sdcc/sdas/asz80/Makefile.in
71index d2bf1ac..89bd91c 100644
72--- a/sdas/asz80/Makefile.in
73+++ b/sdas/asz80/Makefile.in
74@@ -36,7 +36,8 @@ VPATH = @srcdir@
75 
76 CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/Util
77 CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS)
78-LDFLAGS = @LDFLAGS@ -lm
79+LDFLAGS = @LDFLAGS@
80+LIBS = -lm
81 
82 OBJDIR = obj
83 
84@@ -65,7 +66,7 @@ transform = @program_transform_name@
85 all: checkconf $(ASX)
86 
87 $(ASX): $(ASOBJECTS)
88- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS)
89+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) $(LIBS)
90 
91 # Compiling and installing everything and running test
92 # ----------------------------------------------------
93

Archive Download this file



interactive