A small patch to enable building C extension

Hye-Shik Chang perky at fallin.lv
Sat Mar 2 10:30:29 CET 2002


Hello.

I did some patch to compile 3rd party C extensions.
(see attached diff.)


Happy Hacking! :)

--
Hye-Shik
-------------- next part --------------
--- Makefile.pre.in.orig	Sat Mar  2 18:12:23 2002
+++ Makefile.pre.in	Sat Mar  2 18:15:58 2002
@@ -56,7 +56,7 @@
 OPT=		@OPT@
 DEFS=		@DEFS@
 CFLAGS=		$(OPT)
-CPPFLAGS=	-I. -I$(srcdir)/Include $(DEFS)
+CPPFLAGS=	-I. -I$(srcdir)/Include -I$(srcdir)/Stackless $(DEFS)
 LDFLAGS=	@LDFLAGS@
 LDLAST=		@LDLAST@
 SGI_ABI=	@SGI_ABI@
@@ -673,6 +673,7 @@
 		$(INSTALL_DATA) $$i $(INCLUDEPY); \
 	done
 	$(INSTALL_DATA) pyconfig.h $(CONFINCLUDEPY)/pyconfig.h
+	$(INSTALL_DATA) Stackless/stackless.h $(INCLUDEPY)
 
 # Install the library and miscellaneous stuff needed for extending/embedding
 # This goes into $(exec_prefix)
--- Include/Python.h.orig	Sat Mar  2 18:14:15 2002
+++ Include/Python.h	Sat Mar  2 18:14:28 2002
@@ -94,7 +94,7 @@
 #include "codecs.h"
 #include "pyerrors.h"
 
-#include "../Stackless/stackless.h"
+#include "stackless.h"
 
 #include "pystate.h"
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
URL: <http://www.stackless.com/pipermail/stackless/attachments/20020302/59717f71/attachment-0001.pgp>


More information about the Stackless mailing list