diff options
author | Darcy Watkins <dwatkins@tranzeo.com> | 2010-08-05 18:19:07 +0200 |
---|---|---|
committer | Darcy Watkins <dwatkins@tranzeo.com> | 2010-08-05 18:19:07 +0200 |
commit | f30a7df9c9c3ba2ccd330facdb1b46320043215f (patch) | |
tree | ef8c97720406f8bc7d348c6f24f9f05a95e7c5ca /scripts/build/cc | |
parent | 7e96dc369eda940da56870c9f77254b1bc0540ac (diff) | |
download | crosstool-ng-f30a7df9c9c3ba2ccd330facdb1b46320043215f.tar.gz crosstool-ng-f30a7df9c9c3ba2ccd330facdb1b46320043215f.tar.bz2 crosstool-ng-f30a7df9c9c3ba2ccd330facdb1b46320043215f.zip |
cc/gcc: with static ppl, correctly link with libm
On some Fedora boxen (at least FC13), it is also required
to link with libm when static ppl is used.
Diffstat (limited to 'scripts/build/cc')
-rw-r--r-- | scripts/build/cc/gcc.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 0b40d71d..e4d75e7e 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -161,8 +161,9 @@ do_cc_core() { # 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 @@ do_cc() { # 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}") |