--- rpm-4.3.3/Makefile.am.static	2004-11-12 00:35:30.000000000 +0300
+++ rpm-4.3.3/Makefile.am	2005-09-01 15:37:06.000000000 +0400
@@ -28,7 +28,7 @@
 
 staticLDFLAGS = @LDFLAGS_STATIC@ @LDFLAGS_NPTL@
 
-myLDFLAGS = @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@
+myLDFLAGS = -all-static -L/usr/lib/nptl @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@
 
 myLDADD = \
 	$(top_builddir)/lib/librpm.la \
--- rpm-4.3.3/Makefile.in.static	2004-11-12 00:35:49.000000000 +0300
+++ rpm-4.3.3/Makefile.in	2005-09-01 15:39:34.000000000 +0400
@@ -396,7 +396,7 @@
 	@INCPATH@
 
 staticLDFLAGS = @LDFLAGS_STATIC@ @LDFLAGS_NPTL@
-myLDFLAGS = @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@
+myLDFLAGS = -all-static -L/usr/lib/nptl @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@
 myLDADD = \
 	$(top_builddir)/lib/librpm.la \
 	$(top_builddir)/rpmdb/librpmdb.la \
