Module: sip-router
Branch: master
Commit: 63e14405eafe836852ea6ac5298f5d462c32a91f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=63e1440…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Tue Oct 5 03:25:59 2010 -0400
modules/carrierroute: update linking flags on CentOS systems
---
modules/carrierroute/Makefile | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/modules/carrierroute/Makefile b/modules/carrierroute/Makefile
index 64d364c..6a0a86d 100644
--- a/modules/carrierroute/Makefile
+++ b/modules/carrierroute/Makefile
@@ -12,10 +12,16 @@ NAME=carrierroute.so
BUILDER = $(shell which confuse-config)
ifeq ($(BUILDER),)
- CONFUSEDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
- -I/usr/sfw/include
- CONFUSELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
- -L/opt/lib -lconfuse
+ BUILDER = $(shell which pkg-config)
+ ifeq ($(BUILDER),)
+ CONFUSEDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
+ -I/usr/sfw/include
+ CONFUSELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
+ -L/opt/lib -lconfuse
+ else
+ CONFUSEDEFS = $(shell pkg-config --cflags libconfuse)
+ CONFUSELIBS = $(shell pkg-config --libs libconfuse)
+ endif
else
CONFUSEDEFS = $(shell confuse-config --cflags)
CONFUSELIBS = $(shell confuse-config --libs)