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

src/interfaces/ecpg/ecpglib/Makefile

index 1fd1e675b55747cfeeefccb8db04f2808bda5651..ea84299656106d1c9739dc588f163742776cf3b8 100644 (file)
@@ -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