summaryrefslogtreecommitdiff
blob: 88b5420421859ddc171a2a4c309996f9d667bf9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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