Increase the chances of finding libpq if it's installed.
[pspp-builds.git] / src / ui / terminal / automake.mk
index a6ea104a4cb8ceeff0f73bb21f8e56c10a7503f7..57eedb29e8e727fed027148f25dca74f913c669c 100644 (file)
@@ -32,6 +32,8 @@ src_ui_terminal_pspp_LDADD = \
        lib/gsl-extras/libgsl-extras.a  \
        src/data/libdata.a \
        src/libpspp/libpspp.a \
+       $(LIBXML2_LIBS) \
+       $(PG_LIBS) \
        $(LIBICONV) \
        gl/libgl.la \
        @LIBINTL@ @LIBREADLINE@
@@ -39,6 +41,8 @@ src_ui_terminal_pspp_LDADD = \
 
 
 
+src_ui_terminal_pspp_LDFLAGS = $(PG_LDFLAGS)
+
 if RELOCATABLE_VIA_LD
-src_ui_terminal_pspp_LDFLAGS = `$(RELOCATABLE_LDFLAGS) $(bindir)`
+src_ui_terminal_pspp_LDFLAGS += `$(RELOCATABLE_LDFLAGS) $(bindir)`
 endif