mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-13 22:23:04 +00:00
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.
This commit is contained in:
parent
7e96dc369e
commit
f30a7df9c9
@ -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}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user