[mod_python] -DEAPI fix

Mads Kiilerich Mads at Kiilerich.com
Thu Dec 28 14:25:05 EST 2000


Hello,

I've got the -DEAPI warning using mod_python with RedHat apache.
As mentioned on this list it shouldn't matter, but it is
annoying.

The attached patch fixes it for me. I'm not sure it is
TheRightWay to do it. Should everyone compile with -DEAPI? Or
should configure (con)figure it out? Should the OPT flag be
used? Or another introduced?

Regards,

-- 
Mads Kiilerich          Sys.Adm. Cand.Polyt. Stud.Bibel.
Mads at Kiilerich.com      Tel. +45 26 20 07 73
Fxvqrevx! Fiva! Qrg re cvffrgneiryvtg ng xelcgrer zrq EBG-13.                   
-------------- next part --------------
Index: src/Makefile.in
===================================================================
RCS file: /cvsroot/modpython/mod_python/src/Makefile.in,v
retrieving revision 1.7
diff -u -r1.7 Makefile.in
--- src/Makefile.in	2000/12/06 03:05:37	1.7
+++ src/Makefile.in	2000/12/28 13:17:06
@@ -52,7 +52,7 @@
 INCLUDES=@INCLUDES@
 LIBS=@LIBS@
 LDFLAGS=@LDFLAGS@
-OPT=
+OPT=-DEAPI
 CFLAGS=$(OPT) $(INCLUDES) 
 srcdir=.
 
@@ -76,7 +76,7 @@
 	@echo
 	@echo 'Compiling for DSO. For static, do "make static"'
 	@echo
-	$(APXS) $(INCLUDES) -c $(OBJS) $(LIBS)
+	$(APXS) $(OPT) $(INCLUDES) -c $(OBJS) $(LIBS)
 	@echo
 	@echo 'Now su and make install'
 	@echo '  (or, if you only want to perform a partial install,'
@@ -114,4 +114,4 @@
 serverobject.o: serverobject.c
 connobject.o: connobject.c
 
-# DO NOT DELETE THIS LINE
\ No newline at end of file
+# DO NOT DELETE THIS LINE


More information about the Mod_python mailing list