build: Configure `pkg-config' correctly for static linking.
[catacomb] / progs / Makefile.am
index ff7f5f7..5f4e570 100644 (file)
@@ -33,7 +33,7 @@ UTILS_LIBS             = \
        libcatcrypt.la $(top_builddir)/libcatacomb.la \
        $(mLib_LIBS) $(LIBS)
 
-LDADD                   = $(UTILS_LIBS)
+LDADD                   = $(UTILS_LIBS) $(CATACOMB_LIBS)
 
 ###--------------------------------------------------------------------------
 ### The `catcrypt' library.
@@ -92,11 +92,9 @@ dist_man_MANS                += key.1 keyring.5
 ## Generate passphrases with given entropy using wordlists and Markov models.
 bin_PROGRAMS           += mkphrase
 dist_man_MANS          += mkphrase.1
-mkphrase_LDADD          = $(LDADD) $(MATHLIBS)
 
 ## Performance testing.
 bin_PROGRAMS           += perftest
-perftest_LDADD          = $(LDADD) $(MATHLIBS)
 
 ## Remember passphrases for limited periods of time.
 bin_PROGRAMS           += pixie