Skip to content

Commit 151e747

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 732b33f commit 151e747

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
@@ -19,7 +19,7 @@ SO_MAJOR_VERSION= 3
1919
SO_MINOR_VERSION= 7
2020

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

2525
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
@@ -19,7 +19,7 @@ SO_MAJOR_VERSION= 3
1919
SO_MINOR_VERSION= 6
2020

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

2525
# 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
@@ -354,6 +354,7 @@ sub mkvcbuild
354354
my $libecpgcompat = $solution->AddProject(
355355
'libecpg_compat', 'dll',
356356
'interfaces', 'src\interfaces\ecpg\compatlib');
357+
$libecpgcompat->AddDefine('FRONTEND');
357358
$libecpgcompat->AddIncludeDir('src\interfaces\ecpg\include');
358359
$libecpgcompat->AddIncludeDir('src\interfaces\libpq');
359360
$libecpgcompat->UseDef('src\interfaces\ecpg\compatlib\compatlib.def');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy