summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-process/dcron/files/dcron-2.9-Makefile.patch')
-rw-r--r--sys-process/dcron/files/dcron-2.9-Makefile.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/sys-process/dcron/files/dcron-2.9-Makefile.patch b/sys-process/dcron/files/dcron-2.9-Makefile.patch
new file mode 100644
index 000000000000..88b542042185
--- /dev/null
+++ b/sys-process/dcron/files/dcron-2.9-Makefile.patch
@@ -0,0 +1,27 @@
+--- Makefile
++++ Makefile
+@@ -2,7 +2,8 @@
+ #
+
+ CC = gcc
+-CFLAGS = -O2 -Wall -Wstrict-prototypes
++CFLAGS += -Wall -Wstrict-prototypes
++LDFLAGS += -Wl,-z,now
+ LIB =
+ SRCS = main.c subs.c database.c job.c
+ OBJS = main.o subs.o database.o job.o
+@@ -14,12 +15,10 @@
+ all: ${PROTOS} crond crontab
+
+ crond: ${OBJS}
+- ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB}
+- strip crond
++ ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB} ${LDFLAGS}
+
+ crontab: ${D_OBJS}
+- ${CC} ${CFLAGS} -o crontab ${D_OBJS}
+- strip crontab
++ ${CC} ${CFLAGS} -o crontab ${D_OBJS} ${LDFLAGS}
+
+ protos.h: ${SRCS} ${D_SRCS}
+ fgrep -h Prototype ${SRCS} ${D_SRCS} >protos.h