[Freeswitch-svn] [commit] r2724 - freeswitch/trunk/src/mod/languages/mod_python
Freeswitch SVN
brian at freeswitch.org
Sun Sep 17 17:28:31 EDT 2006
Author: brian
Date: Sun Sep 17 17:28:31 2006
New Revision: 2724
Modified:
freeswitch/trunk/src/mod/languages/mod_python/Makefile
freeswitch/trunk/src/mod/languages/mod_python/mod_python.c
Log:
Ok small nitpicks for OS X....
Modified: freeswitch/trunk/src/mod/languages/mod_python/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_python/Makefile (original)
+++ freeswitch/trunk/src/mod/languages/mod_python/Makefile Sun Sep 17 17:28:31 2006
@@ -1,13 +1,13 @@
-LCFLAGS=-fPIC -DZTS -DPTHREADS -Xlinker -export-dynamic
+LCFLAGS=-fPIC -DZTS -DPTHREADS -Xlinker
CFLAGS += -fPIC -I$(PREFIX)/include/python2.4/
PYMOD=freeswitch
-LDFLAGS=-lpython2.4 -Xlinker -export-dynamic -L$(PREFIX)/lib/python2.4/config/
+LDFLAGS=-lpython2.4 -Xlinker -L$(PREFIX)/lib/python2.4/config/
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PYMOD).$(DYNAMIC_LIB_EXTEN)
depends:
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install Python-2.4.3.tgz --prefix=$(PREFIX)
-
+
%.o: %.c
$(CC) $(LCFLAGS) $(CFLAGS) -c $< -o $@
@@ -39,4 +39,4 @@
install:
#cp -f py_$(PYMOD).$(DYNAMIC_LIB_EXTEN) $(MDIR)
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
-
+
Modified: freeswitch/trunk/src/mod/languages/mod_python/mod_python.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_python/mod_python.c (original)
+++ freeswitch/trunk/src/mod/languages/mod_python/mod_python.c Sun Sep 17 17:28:31 2006
@@ -29,6 +29,8 @@
*
*/
+#include <Python.h>
+
#ifndef _REENTRANT
#define _REENTRANT
#endif
@@ -36,8 +38,6 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
-
-#include <Python.h>
#include <switch.h>
More information about the Freeswitch-svn
mailing list