mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-31 16:36:14 +00:00
Kill CT_COMPLIBS_SHARED.
There is no such option so the check is always true. Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
parent
874f4bd668
commit
11f87cfa5d
@ -478,14 +478,13 @@ do_gcc_core_backend() {
|
|||||||
host_libstdcxx_flags+=("-static-libgcc")
|
host_libstdcxx_flags+=("-static-libgcc")
|
||||||
host_libstdcxx_flags+=("-Wl,-Bstatic,-lstdc++,-Bdynamic")
|
host_libstdcxx_flags+=("-Wl,-Bstatic,-lstdc++,-Bdynamic")
|
||||||
host_libstdcxx_flags+=("-lm")
|
host_libstdcxx_flags+=("-lm")
|
||||||
elif [ "${CT_COMPLIBS_SHARED}" != "y" ]; then
|
|
||||||
# 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
|
|
||||||
core_LDFLAGS+=("-lstdc++")
|
|
||||||
core_LDFLAGS+=("-lm")
|
|
||||||
fi
|
fi
|
||||||
|
# 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
|
||||||
|
core_LDFLAGS+=("-lstdc++")
|
||||||
|
core_LDFLAGS+=("-lm")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${CT_CC_GCC_USE_GMP_MPFR}" = "y" ]; then
|
if [ "${CT_CC_GCC_USE_GMP_MPFR}" = "y" ]; then
|
||||||
@ -985,14 +984,13 @@ do_gcc_backend() {
|
|||||||
host_libstdcxx_flags+=("-static-libgcc")
|
host_libstdcxx_flags+=("-static-libgcc")
|
||||||
host_libstdcxx_flags+=("-Wl,-Bstatic,-lstdc++,-Bdynamic")
|
host_libstdcxx_flags+=("-Wl,-Bstatic,-lstdc++,-Bdynamic")
|
||||||
host_libstdcxx_flags+=("-lm")
|
host_libstdcxx_flags+=("-lm")
|
||||||
elif [ "${CT_COMPLIBS_SHARED}" != "y" ]; then
|
|
||||||
# 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
|
|
||||||
final_LDFLAGS+=("-lstdc++")
|
|
||||||
final_LDFLAGS+=("-lm")
|
|
||||||
fi
|
fi
|
||||||
|
# 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
|
||||||
|
final_LDFLAGS+=("-lstdc++")
|
||||||
|
final_LDFLAGS+=("-lm")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${CT_CC_GCC_USE_GMP_MPFR}" = "y" ]; then
|
if [ "${CT_CC_GCC_USE_GMP_MPFR}" = "y" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user