void-packages/srcpkgs/dcron/patches/respect_cflags_and_ldflags....

24 lines
764 B
Diff

--- Makefile.orig 2012-01-23 10:56:26.473607101 +0100
+++ Makefile 2012-01-23 10:57:43.806746482 +0100
@@ -32,7 +32,6 @@ TABSRCS = crontab.c chuser.c
TABOBJS = crontab.o chuser.o
PROTOS = protos.h
LIBS =
-LDFLAGS =
DEFS = -DVERSION='"$(VERSION)"' \
-DSCRONTABS='"$(SCRONTABS)"' -DCRONTABS='"$(CRONTABS)"' \
-DCRONSTAMPS='"$(CRONSTAMPS)"' -DLOG_IDENT='"$(LOG_IDENT)"' \
@@ -54,10 +53,10 @@ protos.h: $(SRCS) $(TABSRCS)
fgrep -h Prototype $(SRCS) $(TABSRCS) > protos.h
crond: $(OBJS)
- $(CC) $(LDFLAGS) $^ $(LIBS) -o crond
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o crond
crontab: $(TABOBJS)
- $(CC) $(LDFLAGS) $^ -o crontab
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o crontab
%.o: %.c defs.h $(PROTOS)
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(DEFS) $< -o $@