Increase the chances of finding libpq if it's installed.
[pspp-builds.git] / src / ui / terminal / automake.mk
index 65cd23a33818f4b7b9f37e2c71ca33e8efd3e03e..57eedb29e8e727fed027148f25dca74f913c669c 100644 (file)
@@ -33,6 +33,7 @@ src_ui_terminal_pspp_LDADD = \
        src/data/libdata.a \
        src/libpspp/libpspp.a \
        $(LIBXML2_LIBS) \
+       $(PG_LIBS) \
        $(LIBICONV) \
        gl/libgl.la \
        @LIBINTL@ @LIBREADLINE@
@@ -40,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