packages/net/znc/patches/101-Reduce_rebuild_time.patch
Rosen Penev cb202c0acb znc: Update to 1.7.1
Notable Changes:
 * New IRCv3.2 capabilities support on client and server side
 * Increased max line lengths
 * support for stripping color control codes
 * various bug fixes

Signed-off-by: Rosen Penev <rosenp@gmail.com>
[jonas.gorski: add notable changes, switch to 1.7.1]
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2018-07-27 15:09:41 +02:00

39 lines
1.2 KiB
Diff

From 0527869a72c27bfb25b5f92fdd77a04c39d939db Mon Sep 17 00:00:00 2001
From: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
Date: Sat, 16 Apr 2011 05:51:04 +0200
Subject: [PATCH] Don't rebuild everything when the Makefile's timestamp
changed
---
Makefile.in | 2 +-
modules/Makefile.in | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
--- a/Makefile.in
+++ b/Makefile.in
@@ -128,7 +128,7 @@ clean:
distclean: clean
rm -rf $(DISTCLEAN)
-src/%.o: src/%.cpp Makefile include/znc/Csocket.h
+src/%.o: src/%.cpp include/znc/Csocket.h
@mkdir -p .depend src
$(E) Building core object $*...
$(Q)$(CXX) $(CXXFLAGS) -c -o $@ $< -MD -MF .depend/$*.dep -MT $@
--- a/modules/Makefile.in
+++ b/modules/Makefile.in
@@ -127,12 +127,12 @@ install_datadir:
clean:
rm -rf $(CLEAN)
-%.o: %.cpp Makefile
+%.o: %.cpp
@mkdir -p .depend
$(E) Building module $(notdir $(basename $@))...
$(Q)$(CXX) $(MODFLAGS) -c -o $@ $< $($(notdir $(basename $@))CXXFLAGS) -MD -MF .depend/$(notdir $@).dep
-%.so: %.o Makefile
+%.so: %.o
$(E) "Linking module" $(notdir $(basename $@))...
$(Q)$(CXX) $(MODFLAGS) $(LDFLAGS) $(MODLINK) -o $@ $< $($(notdir $(basename $@))LDFLAGS) $(LIBS)