Patch and new file by Geoff Furnish for C++ compilation.

This commit is contained in:
Guido van Rossum 1999-12-16 17:52:08 +00:00
parent 9501219303
commit 4e08379891
2 changed files with 17 additions and 2 deletions

View File

@ -17,7 +17,7 @@ VERSION= @VERSION@
srcdir= @srcdir@
VPATH= @srcdir@
@SET_CCC@
@SET_CXX@
CC= @CC@
RANLIB= @RANLIB@
AR= @AR@
@ -95,7 +95,8 @@ MAKESETUP= $(srcdir)/makesetup
FIXOBJS= config.o getpath.o main.o getbuildinfo.o
OBJS= $(MODOBJS) $(FIXOBJS)
MAINOBJ= python.o
#MAINOBJ= python.o
MAINOBJ= @MAINOBJ@
SYSLIBS= $(LIBM) $(LIBC)
@ -243,4 +244,7 @@ $(DESTSHARED):
fi; \
done
ccpython.o: ccpython.cc
$(CXX) $(CFLAGS) -c $*.cc
# Stuff is appended here by makesetup and make depend

11
Modules/ccpython.cc Normal file
View File

@ -0,0 +1,11 @@
/* Minimal main program -- everything is loaded from the library */
#include "Python.h"
extern "C"
DL_EXPORT(int) Py_Main( int argc, char *argv[] );
int main( int argc, char *argv[] )
{
return Py_Main(argc, argv);
}