mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +03:00
Add port/strnlen support to libpq and ecpg Makefiles.
In the wake of fffd651e8, any makefile that pulls in snprintf.c
from src/port/ needs to be prepared to pull in strnlen.c as well.
Per buildfarm.
This commit is contained in:
1
src/interfaces/ecpg/compatlib/.gitignore
vendored
1
src/interfaces/ecpg/compatlib/.gitignore
vendored
@@ -2,3 +2,4 @@
|
||||
/blibecpg_compatdll.def
|
||||
/exports.list
|
||||
/snprintf.c
|
||||
/strnlen.c
|
||||
|
||||
@@ -31,7 +31,7 @@ SHLIB_EXPORTS = exports.txt
|
||||
# Need to recompile any libpgport object files
|
||||
LIBS := $(filter-out -lpgport, $(LIBS))
|
||||
|
||||
OBJS= informix.o $(filter snprintf.o, $(LIBOBJS)) $(WIN32RES)
|
||||
OBJS= informix.o $(filter snprintf.o strnlen.o, $(LIBOBJS)) $(WIN32RES)
|
||||
|
||||
PKG_CONFIG_REQUIRES_PRIVATE = libecpg libpgtypes
|
||||
|
||||
@@ -48,7 +48,7 @@ submake-pgtypeslib:
|
||||
# Shared library stuff
|
||||
include $(top_srcdir)/src/Makefile.shlib
|
||||
|
||||
snprintf.c: % : $(top_srcdir)/src/port/%
|
||||
snprintf.c strnlen.c: % : $(top_srcdir)/src/port/%
|
||||
rm -f $@ && $(LN_S) $< .
|
||||
|
||||
install: all installdirs install-lib
|
||||
@@ -58,6 +58,6 @@ installdirs: installdirs-lib
|
||||
uninstall: uninstall-lib
|
||||
|
||||
clean distclean: clean-lib
|
||||
rm -f $(OBJS) snprintf.c
|
||||
rm -f $(OBJS) snprintf.c strnlen.c
|
||||
|
||||
maintainer-clean: distclean maintainer-clean-lib
|
||||
|
||||
1
src/interfaces/ecpg/ecpglib/.gitignore
vendored
1
src/interfaces/ecpg/ecpglib/.gitignore
vendored
@@ -5,6 +5,7 @@
|
||||
/pgstrcasecmp.c
|
||||
/snprintf.c
|
||||
/strlcpy.c
|
||||
/strnlen.c
|
||||
/thread.c
|
||||
/win32setlocale.c
|
||||
/isinf.c
|
||||
|
||||
@@ -27,7 +27,8 @@ LIBS := $(filter-out -lpgport, $(LIBS))
|
||||
|
||||
OBJS= execute.o typename.o descriptor.o sqlda.o data.o error.o prepare.o memory.o \
|
||||
connect.o misc.o path.o pgstrcasecmp.o \
|
||||
$(filter snprintf.o strlcpy.o win32setlocale.o isinf.o, $(LIBOBJS)) $(WIN32RES)
|
||||
$(filter snprintf.o strlcpy.o strnlen.o win32setlocale.o isinf.o, $(LIBOBJS)) \
|
||||
$(WIN32RES)
|
||||
|
||||
# thread.c is needed only for non-WIN32 implementation of path.c
|
||||
ifneq ($(PORTNAME), win32)
|
||||
@@ -55,7 +56,7 @@ include $(top_srcdir)/src/Makefile.shlib
|
||||
# necessarily use the same object files as the backend uses. Instead,
|
||||
# symlink the source files in here and build our own object file.
|
||||
|
||||
path.c pgstrcasecmp.c snprintf.c strlcpy.c thread.c win32setlocale.c isinf.c: % : $(top_srcdir)/src/port/%
|
||||
path.c pgstrcasecmp.c snprintf.c strlcpy.c strnlen.c thread.c win32setlocale.c isinf.c: % : $(top_srcdir)/src/port/%
|
||||
rm -f $@ && $(LN_S) $< .
|
||||
|
||||
misc.o: misc.c $(top_builddir)/src/port/pg_config_paths.h
|
||||
@@ -72,6 +73,6 @@ uninstall: uninstall-lib
|
||||
|
||||
clean distclean: clean-lib
|
||||
rm -f $(OBJS)
|
||||
rm -f path.c pgstrcasecmp.c snprintf.c strlcpy.c thread.c win32setlocale.c isinf.c
|
||||
rm -f path.c pgstrcasecmp.c snprintf.c strlcpy.c strnlen.c thread.c win32setlocale.c isinf.c
|
||||
|
||||
maintainer-clean: distclean maintainer-clean-lib
|
||||
|
||||
1
src/interfaces/ecpg/pgtypeslib/.gitignore
vendored
1
src/interfaces/ecpg/pgtypeslib/.gitignore
vendored
@@ -4,3 +4,4 @@
|
||||
/pgstrcasecmp.c
|
||||
/rint.c
|
||||
/snprintf.c
|
||||
/strnlen.c
|
||||
|
||||
@@ -31,7 +31,8 @@ SHLIB_EXPORTS = exports.txt
|
||||
|
||||
OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \
|
||||
pgstrcasecmp.o \
|
||||
$(filter rint.o snprintf.o, $(LIBOBJS)) $(WIN32RES)
|
||||
$(filter rint.o snprintf.o strnlen.o, $(LIBOBJS)) \
|
||||
$(WIN32RES)
|
||||
|
||||
all: all-lib
|
||||
|
||||
@@ -43,7 +44,7 @@ include $(top_srcdir)/src/Makefile.shlib
|
||||
# necessarily use the same object files as the backend uses. Instead,
|
||||
# symlink the source files in here and build our own object file.
|
||||
|
||||
pgstrcasecmp.c rint.c snprintf.c: % : $(top_srcdir)/src/port/%
|
||||
pgstrcasecmp.c rint.c snprintf.c strnlen.c: % : $(top_srcdir)/src/port/%
|
||||
rm -f $@ && $(LN_S) $< .
|
||||
|
||||
install: all installdirs install-lib
|
||||
@@ -53,6 +54,6 @@ installdirs: installdirs-lib
|
||||
uninstall: uninstall-lib
|
||||
|
||||
clean distclean: clean-lib
|
||||
rm -f $(OBJS) pgstrcasecmp.c rint.c snprintf.c
|
||||
rm -f $(OBJS) pgstrcasecmp.c rint.c snprintf.c strnlen.c
|
||||
|
||||
maintainer-clean: distclean maintainer-clean-lib
|
||||
|
||||
Reference in New Issue
Block a user