From 12bdde6a6cab0c88845c100764105ca8e44baa43 Mon Sep 17 00:00:00 2001
From: George Joseph <gjoseph@digium.com>
Date: Fri, 28 Oct 2016 15:59:19 -0600
Subject: [PATCH] pjproject_bundled:  Fix issue where "/version.mak" wasn't
 found

main/Makefile includes third-party/pjproject/build.mak but
doesn't set PJDIR beforehand so "include $(PJDIR)/version.mak"
evaluates to "/version.mak".  Fix is to set PJDIR in main/Makefile
before the include.

Change-Id: I0f7c67d60209049056fe9c4b041bf0463aa95604
---
 main/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/main/Makefile b/main/Makefile
index d41302a7fc..3db0392ff3 100644
--- a/main/Makefile
+++ b/main/Makefile
@@ -253,6 +253,7 @@ ifeq ($(PJPROJECT_BUNDLED),yes)
 ASTPJ_SO_VERSION=2
 ASTPJ_LDLIBS=-L. -lasteriskpj
 
+PJDIR=$(ASTTOPDIR)/$(PJPROJECT_DIR)/source
 -include $(ASTTOPDIR)/$(PJPROJECT_DIR)/build.mak
 
 PJPROJECT_LDLIBS := \
-- 
GitLab