update to use -export-runtime
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7008 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1b7e795c03
commit
fbdf160f4a
2 changed files with 3 additions and 9 deletions
|
|
@ -7,12 +7,9 @@ LIBS = -lm
|
|||
SWIGOPT =
|
||||
|
||||
all::
|
||||
$(SWIG) -co swigrun.swg
|
||||
$(SWIG) -o pyrun.swg -co python/pyrun.swg
|
||||
$(SWIG) -o runtime.swg -co runtime.swg
|
||||
$(SWIG) -python -external-runtime
|
||||
$(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' python_cpp
|
||||
rm -f *.swg
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
|
|
@ -21,7 +18,7 @@ static::
|
|||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile python_clean
|
||||
rm -f $(TARGET).py
|
||||
rm -f *.swg
|
||||
rm -f swigpyrun.h
|
||||
|
||||
check: all
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
/* File : example.cxx */
|
||||
|
||||
#include <Python.h>
|
||||
#include "swigrun.swg"
|
||||
#include "pyrun.swg"
|
||||
#include "runtime.swg"
|
||||
|
||||
#include "swigpyrun.h"
|
||||
#include "example.h"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue