Also build snprintf from pgport if needed.
authorMichael Meskes <meskes@postgresql.org>
Wed, 3 Oct 2007 13:40:52 +0000 (13:40 +0000)
committerMichael Meskes <meskes@postgresql.org>
Wed, 3 Oct 2007 13:40:52 +0000 (13:40 +0000)
src/interfaces/ecpg/compatlib/Makefile

index f3a5403a5ab5293255ef6bbf1b2d7f7a5fb4c91e..5ae36f5c0ea025a36d35644657265c00322869b6 100644 (file)
@@ -23,6 +23,9 @@ override CFLAGS += $(PTHREAD_CFLAGS)
 SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) -lm \
        $(PTHREAD_LIBS)
 
+# Need to recompile any libpgport object files
+LIBS := $(filter-out -lpgport, $(LIBS))
+
 OBJS= informix.o $(filter snprintf.o, $(LIBOBJS))
 
 ifneq ($(PORTNAME), win32)