Description of problem: c++ programs cannot be built as static programs. g++ -static fails to link because of a missing /usr/lib/libm.a glibc-devel-2.10.1-1.i586.rpm has been installed. Version-Release number of selected component (if applicable): glibc-devel-2.10.1-1.i586 How reproducible: Steps to Reproduce: 1. echo 'int main(){return 0;}'>broken.cpp 2. g++ -static broken.cpp 3. Actual results: /usr/bin/ld: cannot find -lm Expected results: Additional info: libm.a was provided by glibc-devel-2.9-3.i386 in F10.
You need to install glibc-static if you want to link statically. And it is not installed by default intentionally, static linking is not recommended: http://people.redhat.com/drepper/no_static_linking.html