From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461) Description of problem: Jason, a co-developer of LvR, is requesting that a dedicated static compiler flag be introduced into the source tree. What is needed is an entirely static rpm and rpmb, to build a core system in chroot. In rpm-4.0.3, this was accomplished with: ./configure --prefix=/static --disable-nls --enable-static --enable-static- link --disable-shared && make LDFLAGS=-all-static && blah..blah In 4.0.4, the --disable-shared bombs out the install, during the linking in the md5 section. Removing --disable-shared enables the build, but the binaries still retain lib dependencies. In 4.1, I've yet to be able to build a static version, and thus am still forced to use 4.0.3 in chroot. In following the mailing lists, I see that more and more folk are "rolling their own" distro, and the need for building with rpm in chroot is definately growing. Tracking the changes in zlib, md5, beecrypt, db, etc and how they affect the build is very tedious and often frustrating. If this could become a permanent part of the tree, specifically targeting those people attempting to build rpm for this purpose, you might just never have to buy beer ever again :) Thanks for all of your wonderful work, Jason Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.Try --disable-nls --disable-shared --enable-static --enable-static-link -- with-python-subpackage=no && make LDFLAGS=-all-static on rpm-4.1 Additional info:
Edit the top level Makefile.am, remove '#' in myLDFLAGS = # @LDFLAGS_STATIC@ for now. I'm reluctant to add complexity to configure for a minor feature. Should work for all recent versions of rpm, I use this for debugging all the time.