summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/killproc/files')
-rw-r--r--app-admin/killproc/files/killproc-2.13-makefile.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/app-admin/killproc/files/killproc-2.13-makefile.patch b/app-admin/killproc/files/killproc-2.13-makefile.patch
new file mode 100644
index 000000000000..aa533049abdc
--- /dev/null
+++ b/app-admin/killproc/files/killproc-2.13-makefile.patch
@@ -0,0 +1,42 @@
+--- killproc-2.13/Makefile.orig 2007-11-30 14:01:09.000000000 +0100
++++ killproc-2.13/Makefile 2009-09-04 17:21:26.000000000 +0200
+@@ -27,9 +27,7 @@
+ #
+ # egcs used with -O2 includes -fno-force-mem which is/was buggy (1998/10/08)
+ #
+- CFLAGS = $(RPM_OPT_FLAGS) $(COPTS) $(DEBUG) $(INC) -D_GNU_SOURCE -Wall -pipe
+- CLOOP = -funroll-loops
+- CC = gcc
++ CFLAGS = $(RPM_OPT_FLAGS) $(COPTS) $(DEBUG) $(INC) -D_GNU_SOURCE -Wall
+ RM = rm -f
+ MKDIR = mkdir -p
+ RMDIR = rm -rf
+@@ -59,22 +57,22 @@
+ all: $(SBINPRG) $(UBINPRG)
+
+ libinit.o: libinit.c libinit.h
+- $(CC) $(CFLAGS) $(CLOOP) -DINITDIR=\"$(INITDIR)\" -c $<
++ $(CC) $(CFLAGS) -DINITDIR=\"$(INITDIR)\" -c $<
+
+ killproc: killproc.c libinit.o
+- $(CC) $(CFLAGS) $(CLOOP) -o $@ $^ $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+ startproc: startproc.c libinit.o
+- $(CC) $(CFLAGS) $(CLOOP) -o $@ $^ $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+ checkproc: checkproc.c libinit.o
+- $(CC) $(CFLAGS) $(CLOOP) -o $@ $^ $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+ usleep: usleep.c
+- $(CC) $(CFLAGS) -o $@ $^
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+ fsync: fsync.c
+- $(CC) $(CFLAGS) -o $@ $^
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+ clean:
+ $(RM) *.o *~ killproc startproc checkproc pidofproc start_daemon usleep fsync