aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/insserv/files/make.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/insserv/files/make.patch')
-rw-r--r--meta/recipes-devtools/insserv/files/make.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-devtools/insserv/files/make.patch b/meta/recipes-devtools/insserv/files/make.patch
new file mode 100644
index 0000000000..bb3b51a8ca
--- /dev/null
+++ b/meta/recipes-devtools/insserv/files/make.patch
@@ -0,0 +1,58 @@
+=== modified file 'Makefile'
+--- old/Makefile 2008-06-24 14:49:47 +0000
++++ new/Makefile 2008-06-24 15:56:15 +0000
+@@ -7,10 +7,10 @@
+ INITDIR = /etc/init.d
+ INSCONF = /etc/insserv.conf
+ #DESTDIR = /tmp/root
+-#DEBUG = -DDEBUG=1 -Wpacked
++DEBUG = -DDEBUG=1 -Wpacked
+ #LOOPS = -DIGNORE_LOOPS=1
+ DEBUG =
+-ISSUSE = -DSUSE
++#ISSUSE = -DSUSE
+ DESTDIR =
+ VERSION = 1.11.0
+ DATE = $(shell date +'%d%b%y' | tr '[:lower:]' '[:upper:]')
+@@ -28,7 +28,9 @@
+ COPTS = -O2
+ endif
+ endif
+- CFLAGS = -Wall $(COPTS) $(DEBUG) $(LOOPS) -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \
++COPTS += -g
++
++ MY_CFLAGS = $(CFLAGS) -Wall $(COPTS) $(DEBUG) $(LOOPS) -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \
+ $(ISSUSE) -DINITDIR=\"$(INITDIR)\" -DINSCONF=\"$(INSCONF)\" -pipe
+ CLOOP = -falign-loops=0
+ CC = gcc
+@@ -58,13 +60,13 @@
+ all: $(TODO)
+
+ listing.o: listing.c listing.h .system
+- $(CC) $(CFLAGS) $(CLOOP) -c $<
++ $(CC) $(MY_CFLAGS) $(CLOOP) -c $<
+
+ insserv.o: insserv.c listing.h .system
+- $(CC) $(CFLAGS) $(CLOOP) -c $<
++ $(CC) $(MY_CFLAGS) $(CLOOP) -c $<
+
+ insserv: insserv.o listing.o
+- $(CC) $(CFLAGS) -Wl,-O,3,--relax -o $@ $^
++ $(CC) $(MY_CFLAGS) -Wl,-O,3,--relax -o $@ $^
+
+ ifeq ($(ISSUSE),-DSUSE)
+ insserv.8: insserv.8.in .system
+@@ -86,10 +88,10 @@
+ -include .depend.listing .depend.insserv
+
+ .depend.listing:
+- @$(CC) $(CFLAGS) -M listing.c >$@ 2>/dev/null
++ @$(CC) $(MY_CFLAGS) -M listing.c >$@ 2>/dev/null
+
+ .depend.insserv:
+- @$(CC) $(CFLAGS) -M insserv.c >$@ 2>/dev/null
++ @$(CC) $(MY_CFLAGS) -M insserv.c >$@ 2>/dev/null
+
+ install: $(TODO)
+ $(MKDIR) $(SBINDIR)
+