diff options
Diffstat (limited to 'meta/recipes-devtools/insserv/files/make.patch')
| -rw-r--r-- | meta/recipes-devtools/insserv/files/make.patch | 58 |
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 @@ | |||
| 1 | === modified file 'Makefile' | ||
| 2 | --- old/Makefile 2008-06-24 14:49:47 +0000 | ||
| 3 | +++ new/Makefile 2008-06-24 15:56:15 +0000 | ||
| 4 | @@ -7,10 +7,10 @@ | ||
| 5 | INITDIR = /etc/init.d | ||
| 6 | INSCONF = /etc/insserv.conf | ||
| 7 | #DESTDIR = /tmp/root | ||
| 8 | -#DEBUG = -DDEBUG=1 -Wpacked | ||
| 9 | +DEBUG = -DDEBUG=1 -Wpacked | ||
| 10 | #LOOPS = -DIGNORE_LOOPS=1 | ||
| 11 | DEBUG = | ||
| 12 | -ISSUSE = -DSUSE | ||
| 13 | +#ISSUSE = -DSUSE | ||
| 14 | DESTDIR = | ||
| 15 | VERSION = 1.11.0 | ||
| 16 | DATE = $(shell date +'%d%b%y' | tr '[:lower:]' '[:upper:]') | ||
| 17 | @@ -28,7 +28,9 @@ | ||
| 18 | COPTS = -O2 | ||
| 19 | endif | ||
| 20 | endif | ||
| 21 | - CFLAGS = -Wall $(COPTS) $(DEBUG) $(LOOPS) -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \ | ||
| 22 | +COPTS += -g | ||
| 23 | + | ||
| 24 | + MY_CFLAGS = $(CFLAGS) -Wall $(COPTS) $(DEBUG) $(LOOPS) -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \ | ||
| 25 | $(ISSUSE) -DINITDIR=\"$(INITDIR)\" -DINSCONF=\"$(INSCONF)\" -pipe | ||
| 26 | CLOOP = -falign-loops=0 | ||
| 27 | CC = gcc | ||
| 28 | @@ -58,13 +60,13 @@ | ||
| 29 | all: $(TODO) | ||
| 30 | |||
| 31 | listing.o: listing.c listing.h .system | ||
| 32 | - $(CC) $(CFLAGS) $(CLOOP) -c $< | ||
| 33 | + $(CC) $(MY_CFLAGS) $(CLOOP) -c $< | ||
| 34 | |||
| 35 | insserv.o: insserv.c listing.h .system | ||
| 36 | - $(CC) $(CFLAGS) $(CLOOP) -c $< | ||
| 37 | + $(CC) $(MY_CFLAGS) $(CLOOP) -c $< | ||
| 38 | |||
| 39 | insserv: insserv.o listing.o | ||
| 40 | - $(CC) $(CFLAGS) -Wl,-O,3,--relax -o $@ $^ | ||
| 41 | + $(CC) $(MY_CFLAGS) -Wl,-O,3,--relax -o $@ $^ | ||
| 42 | |||
| 43 | ifeq ($(ISSUSE),-DSUSE) | ||
| 44 | insserv.8: insserv.8.in .system | ||
| 45 | @@ -86,10 +88,10 @@ | ||
| 46 | -include .depend.listing .depend.insserv | ||
| 47 | |||
| 48 | .depend.listing: | ||
| 49 | - @$(CC) $(CFLAGS) -M listing.c >$@ 2>/dev/null | ||
| 50 | + @$(CC) $(MY_CFLAGS) -M listing.c >$@ 2>/dev/null | ||
| 51 | |||
| 52 | .depend.insserv: | ||
| 53 | - @$(CC) $(CFLAGS) -M insserv.c >$@ 2>/dev/null | ||
| 54 | + @$(CC) $(MY_CFLAGS) -M insserv.c >$@ 2>/dev/null | ||
| 55 | |||
| 56 | install: $(TODO) | ||
| 57 | $(MKDIR) $(SBINDIR) | ||
| 58 | |||
