[asterisk-commits] jpeeler: trunk r187906 - /trunk/channels/Makefile
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Apr 10 15:26:59 CDT 2009
Author: jpeeler
Date: Fri Apr 10 15:26:46 2009
New Revision: 187906
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=187906
Log:
Fix module embedding for chan_h323.
Include libchanh323.a in the modules.link file so that all the symbols can be
resolved at link time.
(closes issue #11966)
Reported by: dome
Patches:
issue_11966.patch uploaded by kpfleming (license 421)
Tested by: jpeeler
Modified:
trunk/channels/Makefile
Modified: trunk/channels/Makefile
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/Makefile?view=diff&rev=187906&r1=187905&r2=187906
==============================================================================
--- trunk/channels/Makefile (original)
+++ trunk/channels/Makefile Fri Apr 10 15:26:46 2009
@@ -60,7 +60,6 @@
ifneq ($(wildcard h323/Makefile.ast),)
include h323/Makefile.ast
endif
-H323LDFLAGS+=-Wl,--version-script=h323/noexport.map
clean::
$(MAKE) -C misdn clean
@@ -71,14 +70,18 @@
$(if $(filter chan_iax2,$(EMBEDDED_MODS)),modules.link,chan_iax2.so): iax2-parser.o iax2-provision.o
+ifneq ($(filter chan_h323,$(EMBEDDED_MODS)),)
+modules.link: h323/libchanh323.a
+else
ifeq ($(OSARCH),linux-gnu)
-chan_h323.so: chan_h323.o h323/libchanh323.a h323/Makefile.ast
+chan_h323.so: chan_h323.o h323/libchanh323.a
$(ECHO_PREFIX) echo " [LD] $^ -> $@"
- $(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(ASTLDFLAGS) $(SOLINK) $(H323LDFLAGS) -o $@ $< h323/libchanh323.a $(H323LDLIBS)
+ $(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(ASTLDFLAGS) $(SOLINK) -o $@ $< h323/libchanh323.a $(H323LDLIBS)
else
chan_h323.so: chan_h323.o h323/libchanh323.a
$(ECHO_PREFIX) echo " [LD] $^ -> $@"
$(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(ASTLDFLAGS) $(SOLINK) -o $@ $< h323/libchanh323.a $(CHANH323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -L$(OPENH323DIR)/lib $(H323LIB) -L/usr/lib -lcrypto -lssl -lexpat
+endif
endif
chan_misdn.o: ASTCFLAGS+=-Imisdn
@@ -99,7 +102,5 @@
h323/Makefile.ast:
$(CMD_PREFIX) $(MAKE) -C h323 Makefile.ast
-h323/libchanh323.a:
+h323/libchanh323.a: h323/Makefile.ast
$(CMD_PREFIX) $(MAKE) -C h323 libchanh323.a
-
-
More information about the asterisk-commits
mailing list