Ok small nitpicks for OS X....
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2724 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
24ee2c2744
commit
1b48735d8c
|
@ -1,13 +1,13 @@
|
||||||
LCFLAGS=-fPIC -DZTS -DPTHREADS -Xlinker -export-dynamic
|
LCFLAGS=-fPIC -DZTS -DPTHREADS -Xlinker
|
||||||
CFLAGS += -fPIC -I$(PREFIX)/include/python2.4/
|
CFLAGS += -fPIC -I$(PREFIX)/include/python2.4/
|
||||||
PYMOD=freeswitch
|
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)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PYMOD).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install Python-2.4.3.tgz --prefix=$(PREFIX)
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install Python-2.4.3.tgz --prefix=$(PREFIX)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(LCFLAGS) $(CFLAGS) -c $< -o $@
|
$(CC) $(LCFLAGS) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
|
@ -39,4 +39,4 @@ clean:
|
||||||
install:
|
install:
|
||||||
#cp -f py_$(PYMOD).$(DYNAMIC_LIB_EXTEN) $(MDIR)
|
#cp -f py_$(PYMOD).$(DYNAMIC_LIB_EXTEN) $(MDIR)
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
#ifndef _REENTRANT
|
#ifndef _REENTRANT
|
||||||
#define _REENTRANT
|
#define _REENTRANT
|
||||||
#endif
|
#endif
|
||||||
|
@ -37,8 +39,6 @@
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <Python.h>
|
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
const char modname[] = "mod_python";
|
const char modname[] = "mod_python";
|
||||||
|
|
Loading…
Reference in New Issue