ecpglib needs to link with libintl if it's in use.
authorTom Lane
Sat, 17 May 2008 20:23:40 +0000 (20:23 +0000)
committerTom Lane
Sat, 17 May 2008 20:23:40 +0000 (20:23 +0000)
Per buildfarm results.

src/interfaces/ecpg/ecpglib/Makefile

index d93be73b870bf062dedbaa3847de8899d04a9efc..d1c40ec0b41e6a9001a63be78cc6fee2ae5d4552 100644 (file)
@@ -5,7 +5,7 @@
 # Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
 # 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
 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