There is a test in ./configure to see if your command line arguments will allow you to compile using CC. This test is broken because this test does not use libtool. To be consistent with your makefile which will compile the code, you should use libtool to run the test. I have tried to pass libtool options at configuration time and they fail because CC gets these options and does not know what to do with them.
In particular at configure time LDFLAGS="-static" \ CFLAGS="$RPM_OPT_FLAGS" \ ./configure --prefix=%{__prefix} gives problems and you must use a compile time flag. Why are these two LDFLAGS settings different? Only because configure is not consistant. make LDFLAGS="-static"
Closing due to age of bug and RHL 6.2 is no longer supported. If you have more information to add to this report, related to current rpm version in Fedora Core 4 or Rawhide please reopen.