From d1ef127084786e171f38b5b875ee984c5a5eb544 Mon Sep 17 00:00:00 2001
From: George Joseph <gjoseph@digium.com>
Date: Fri, 10 Mar 2017 19:29:04 -0700
Subject: [PATCH] pjproject_bundled:  Reduce the need for rebuilds

Bundled pjproject should now only rebuild if one of the menuselect
"Compiler Flags" options changes.

Change-Id: If114a2e16b9e77af371a600d6a5e197bbf28fe43
---
 third-party/pjproject/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/third-party/pjproject/Makefile b/third-party/pjproject/Makefile
index bfd1c27fc5..99c22fa8be 100644
--- a/third-party/pjproject/Makefile
+++ b/third-party/pjproject/Makefile
@@ -135,7 +135,7 @@ source/pjlib/include/pj/%.h: patches/%.h
 	$(ECHO_PREFIX) Applying custom include file $<
 	$(CMD_PREFIX) cp -f $< source/pjlib/include/pj/
 
-.rebuild_needed: $(wildcard ../../makeopts) $(wildcard ../../menuselect.makeopts)
+.rebuild_needed: $(wildcard ../../.lastclean)
 	$(ECHO_PREFIX) Rebuilding
 	$(CMD_PREFIX) $(MAKE) clean $(REALLY_QUIET)
 
-- 
GitLab