diff -r fdaa6c7f6dea -r a3b7a63dce01 scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Thu Jul 29 19:47:16 2010 +0200 +++ b/scripts/build/cc/gcc.sh Thu Aug 05 18:19:07 2010 +0200 @@ -161,8 +161,9 @@ # When companion libraries are build static (eg !shared), # the libstdc++ is not pulled automatically, although it # is needed. Shoe-horn it in our LDFLAGS + # Ditto libm on some Fedora boxen if [ "${CT_COMPLIBS_SHARED}" != "y" ]; then - core_LDFLAGS='-lstdc++' + core_LDFLAGS='-lstdc++ -lm' fi if [ "${CT_CC_GCC_USE_GMP_MPFR}" = "y" ]; then extra_config+=("--with-gmp=${CT_COMPLIBS_DIR}") @@ -357,7 +358,8 @@ # When companion libraries are build static (eg !shared), # the libstdc++ is not pulled automatically, although it # is needed. Shoe-horn it in our LDFLAGS - final_LDFLAGS='-lstdc++' + # Ditto libm on some Fedora boxen + final_LDFLAGS='-lstdc++ -lm' fi if [ "${CT_CC_GCC_USE_GMP_MPFR}" = "y" ]; then extra_config+=("--with-gmp=${CT_COMPLIBS_DIR}")