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