Module: sip-router
Branch: sr_3.0
Commit: 38383b04b9b4002ed5d4ac9a27771a50f32d824a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=38383b0…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Tue Sep 21 14:01:07 2010 +0200
iptrtpproxy: makefile LIBS update
Look for libipt_RTPPROXY first under /lib/xtables (default install
dir) and if not found in $(iptdir)/extensions (compile dir).
(cherry picked from commit 6b9f6a324851b87d37eaa1f576f3e88d5863ee2a)
---
modules/iptrtpproxy/Makefile | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/modules/iptrtpproxy/Makefile b/modules/iptrtpproxy/Makefile
index 4576575..4d6fd76 100644
--- a/modules/iptrtpproxy/Makefile
+++ b/modules/iptrtpproxy/Makefile
@@ -6,14 +6,17 @@
# WARNING: do not run this directly, it should be run by the master Makefile
#
-# define path to netfilter/iptables directory
-iptdir = ~/work/netfilter/iptables
+# define path to netfilter/iptables source directory
+iptdir = ~/iptables
include ../../Makefile.defs
auto_gen=
NAME=iptrtpproxy.so
-LIBS += $(iptdir)/iptables.o -L $(iptdir)/libiptc -liptc \
- -L $(iptdir)/extensions -lext
-INCLUDES = -I $(iptdir)/include
+#LIBS += $(iptdir)/iptables.o -L $(iptdir)/libiptc -liptc \
+# -L $(iptdir)/extensions -lext
+# look for libipt_RTPPROXY first under /lib/xtables (default install dir)
+# and if not found in $(iptdir)/extensions (compile dir)
+LIBS = -L/lib/xtables -L$(iptdir)/extensions -lipt_RTPPROXY -ldl
+INCLUDES = -I$(iptdir)/include
DEFS+=-DSER_MOD_INTERFACE