--- rpm-4.4.1/Makefile.am.static	2005-02-01 03:37:39.000000000 +0300
+++ rpm-4.4.1/Makefile.am	2005-08-31 20:52:05.000000000 +0400
@@ -30,7 +30,7 @@
 
 staticLDFLAGS = @LDFLAGS_STATIC@ @LDFLAGS_NPTL@
 
-myLDFLAGS = @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@
+myLDFLAGS = -all-static @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@
 
 myLDADD = \
 	$(top_builddir)/lib/librpm.la \
--- rpm-4.4.1/Makefile.in.static	2005-02-14 01:46:23.000000000 +0300
+++ rpm-4.4.1/Makefile.in	2005-08-31 20:52:18.000000000 +0400
@@ -409,7 +409,7 @@
 	@INCPATH@
 
 staticLDFLAGS = @LDFLAGS_STATIC@ @LDFLAGS_NPTL@
-myLDFLAGS = @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@
+myLDFLAGS = -all-static @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@
 myLDADD = \
 	$(top_builddir)/lib/librpm.la \
 	$(top_builddir)/rpmdb/librpmdb.la \
