lib)
# Linking convenience modules into shared libraries is allowed,
# but linking other static libraries is non-portable.
+ case "$deplib" in
+ # Linking certain compiler provided static libraries, while
+ # non-portable, is reasonable safe and practically necessary on
+ # certain platforms.
+ */libgcc*.$libext | */libclang_rt*.$libext)
+ deplibs="$deplib $deplibs"
+ continue
+ ;;
+ esac
case " $dlpreconveniencelibs " in
*" $deplib "*) ;;
*)
for p in `eval "$output_verbose_link_cmd"`; do
case $prev$p in
- -L* | -R* | -l*)
+ -L* | -R* | -l* | */clang_rt*.a)
# Some compilers place space between "-{L,R}" and the path.
# Remove the space.
if test x-L = "$p" ||