Remove assorted compilation failures introduced by latest ecpg changes.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 3 Oct 2003 17:04:48 +0000 (17:04 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 3 Oct 2003 17:04:48 +0000 (17:04 +0000)
Also remove -g, which has no business in CPPFLAGS in the first place,
let alone being hardwired there by a sub-Makefile.

src/interfaces/ecpg/include/ecpglib.h
src/interfaces/ecpg/pgtypeslib/Makefile

index d728d2e55a57ac5290b90c651c98fdf914c352cf..317d35e329485eabb28a0baf6e6b997365a28e56 100644 (file)
@@ -7,6 +7,7 @@
 #define _ECPGLIB_H
 
 #include "libpq-fe.h"
+#include "ecpgtype.h"
 
 #ifndef __BEOS__
 #ifndef __cplusplus
index 14ea7b17073f1faf58e85937037b9d205fb7d636..7e7fa82cdd82306899fd79c4720a1e33fbd796b5 100644 (file)
@@ -16,7 +16,7 @@ NAME= pgtypes
 SO_MAJOR_VERSION= 1
 SO_MINOR_VERSION= 0
 
-override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils $(CPPFLAGS) $(THREAD_CPPFLAGS) -g
+override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS) $(THREAD_CPPFLAGS)
 SHLIB_LINK += -lm
 
 OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \