22 lines
720 B
Diff
22 lines
720 B
Diff
Allow statically linking Flang support libraries when linking a library
|
|
|
|
diff -urN libtool-2.4.7/build-aux/ltmain.in.orig libtool-2.4.7/build-aux/ltmain.in
|
|
--- libtool-2.4.7/build-aux/ltmain.in.orig 2022-03-17 03:43:39.000000000 +0100
|
|
+++ libtool-2.4.7/build-aux/ltmain.in 2022-10-30 11:49:11.337887100 +0100
|
|
@@ -7459,6 +7459,15 @@
|
|
a_deplib=
|
|
break 2
|
|
fi
|
|
+ # Linking compiler provided static libraries into shared
|
|
+ # libraries is allowed, but linking other static libraries is
|
|
+ # non-portable.
|
|
+ case $potlib in
|
|
+ */libFortran*.$libext)
|
|
+ func_append newdeplibs " $potlib"
|
|
+ a_deplib=
|
|
+ ;;
|
|
+ esac
|
|
done
|
|
done
|
|
fi
|