[Freeswitch-svn] [commit] r13080 - freeswitch/trunk/src/mod/languages/mod_perl

FreeSWITCH SVN stkn at freeswitch.org
Fri Apr 17 13:21:35 PDT 2009


Author: stkn
Date: Fri Apr 17 15:21:35 2009
New Revision: 13080

Log:
Libtool build fix for mod_perl: use LIBTOOL_LIB_EXTEN to make libtool-2.2 happy and CXXLINK since we are linking a C++ lib

Modified:
   freeswitch/trunk/src/mod/languages/mod_perl/Makefile

Modified: freeswitch/trunk/src/mod/languages/mod_perl/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_perl/Makefile	(original)
+++ freeswitch/trunk/src/mod/languages/mod_perl/Makefile	Fri Apr 17 15:21:35 2009
@@ -23,10 +23,10 @@
 orig: mod_perl_wrap.cpp
 	patch -R -s -p0 -i hack.diff
 
-freeswitch.$(DYNAMIC_LIB_EXTEN): $(LOCAL_OBJS) $(LOCAL_LIBADD)
-	$(LINK) $(SOLINK) -o freeswitch.$(DYNAMIC_LIB_EXTEN)  $(LOCAL_OBJS) $(LOCAL_LIBADD) $(LDFLAGS)
+freeswitch.$(LIBTOOL_LIB_EXTEN): $(LOCAL_OBJS) $(LOCAL_LIBADD)
+	$(CXXLINK) $(SOLINK) -o freeswitch.$(LIBTOOL_LIB_EXTEN) $(LOCAL_OBJS) $(LOCAL_LIBADD) $(LDFLAGS)
 
-local_all: freeswitch.$(DYNAMIC_LIB_EXTEN)
+local_all: freeswitch.$(LIBTOOL_LIB_EXTEN)
 
 .perlok:
 	@(${PERL} -V | grep -i usemultiplicity=define >/dev/null && echo Phew, You have the right perl.) \
@@ -34,9 +34,9 @@
 	@touch .perlok
 
 local_clean:
-	rm -fr *~ .perlok freeswitch.$(DYNAMIC_LIB_EXTEN)
+	rm -fr *~ .perlok .libs freeswitch.$(LIBTOOL_LIB_EXTEN) 2>/dev/null
 
 depend_install:
 	mkdir -p $(DESTDIR)$(PREFIX)/perl
-	$(LTINSTALL) freeswitch.$(DYNAMIC_LIB_EXTEN) freeswitch.pm $(DESTDIR)$(PREFIX)/perl
+	$(LTINSTALL) freeswitch.$(LIBTOOL_LIB_EXTEN) freeswitch.pm $(DESTDIR)$(PREFIX)/perl
 	if [ ! -f $(DESTDIR)$(PREFIX)/perl/freeswitch.pm ] ; then $(LTINSTALL) freeswitch.pm $(DESTDIR)$(PREFIX)/perl ; fi



More information about the Freeswitch-svn mailing list