Content-Length: 318295 | pFad | http://github.com/postgrespro/postgres/commit/f221c44cda52c324ced27e3b1fbec3458a2683d4

AD Build every ECPG library with -DFRONTEND. · postgrespro/postgres@f221c44 · GitHub
Skip to content

Commit f221c44

Browse files
committed
Build every ECPG library with -DFRONTEND.
Each of the libraries incorporates src/port files, which often check FRONTEND. Build systems disagreed on whether to build libpgtypes this way. Only libecpg incorporates files that rely on it today. Back-patch to 9.0 (all supported versions) to forestall surprises.
1 parent e8528a8 commit f221c44

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/interfaces/ecpg/compatlib/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ SO_MAJOR_VERSION= 3
1818
SO_MINOR_VERSION= 3
1919

2020
override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
21-
-I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
21+
-I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils -DFRONTEND $(CPPFLAGS)
2222
override CFLAGS += $(PTHREAD_CFLAGS)
2323

2424
SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) \

src/interfaces/ecpg/pgtypeslib/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ SO_MAJOR_VERSION= 3
1818
SO_MINOR_VERSION= 2
1919

2020
override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
21-
-I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS)
21+
-I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) -DFRONTEND $(CPPFLAGS)
2222
override CFLAGS += $(PTHREAD_CFLAGS)
2323

2424
# Need to recompile any libpgport object files

src/tools/msvc/Mkvcbuild.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ sub mkvcbuild
249249

250250
my $libecpgcompat =
251251
$solution->AddProject('libecpg_compat','dll','interfaces','src\interfaces\ecpg\compatlib');
252+
$libecpgcompat->AddDefine('FRONTEND');
252253
$libecpgcompat->AddIncludeDir('src\interfaces\ecpg\include');
253254
$libecpgcompat->AddIncludeDir('src\interfaces\libpq');
254255
$libecpgcompat->UseDef('src\interfaces\ecpg\compatlib\compatlib.def');

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/f221c44cda52c324ced27e3b1fbec3458a2683d4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy