From 3a2757923c4ea8a7421b00346164d46cac453c86 Mon Sep 17 00:00:00 2001
From: Joshua Colp <jcolp@digium.com>
Date: Thu, 19 Jul 2012 12:14:29 +0000
Subject: [PATCH] Use the bruteforce method to get debugging enabled for
 pjproject.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370240 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 res/Makefile                       | 2 +-
 res/pjproject/build/os-auto.mak.in | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/res/Makefile b/res/Makefile
index e8d5c2945b..bfbca76b32 100644
--- a/res/Makefile
+++ b/res/Makefile
@@ -70,7 +70,7 @@ clean::
 	rm -f snmp/*.o snmp/*.i ael/*.o ael/*.i ais/*.o ais/*.i
 
 pjproject/build.mak:
-	cd pjproject && ./configure AR="" CFLAGS="-fPIC -g"  --disable-floating-point --disable-sound --disable-oss --disable-speex-aec --disable-l16-codec --disable-gsm-codec --disable-g722-codec --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec --disable-g711-codec
+	cd pjproject && ./configure AR="" CFLAGS=-fPIC  --disable-floating-point --disable-sound --disable-oss --disable-speex-aec --disable-l16-codec --disable-gsm-codec --disable-g722-codec --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec --disable-g711-codec
 
 include pjproject/build.mak
 
diff --git a/res/pjproject/build/os-auto.mak.in b/res/pjproject/build/os-auto.mak.in
index 3d99927e57..fe7c1b6f6c 100644
--- a/res/pjproject/build/os-auto.mak.in
+++ b/res/pjproject/build/os-auto.mak.in
@@ -1,8 +1,8 @@
 # @configure_input@
 
-export OS_CFLAGS   := $(CC_DEF)PJ_AUTOCONF=1 @CFLAGS@
+export OS_CFLAGS   := $(CC_DEF)PJ_AUTOCONF=1 @CFLAGS@ -g
 
-export OS_CXXFLAGS := $(CC_DEF)PJ_AUTOCONF=1 @CXXFLAGS@
+export OS_CXXFLAGS := $(CC_DEF)PJ_AUTOCONF=1 @CXXFLAGS@ -g
 
 export OS_LDFLAGS  := @LDFLAGS@ @LIBS@
 
-- 
GitLab