ecpglib needs to link with libintl if it's in use.

Per buildfarm results.
This commit is contained in:
Tom Lane 2008-05-17 20:23:40 +00:00
parent 55de145d1c
commit 5248e02b50

View File

@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group # Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California # Portions Copyright (c) 1994, Regents of the University of California
# #
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.59 2008/04/07 14:15:58 petere Exp $ # $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.60 2008/05/17 20:23:40 tgl Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -33,7 +33,7 @@ ifneq ($(PORTNAME), win32)
OBJS += thread.o OBJS += thread.o
endif endif
SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) -lm $(PTHREAD_LIBS) SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) $(filter -lintl -lm, $(LIBS)) $(PTHREAD_LIBS)
SHLIB_EXPORTS = exports.txt SHLIB_EXPORTS = exports.txt