Blame SOURCES/gcc11-d-shared-libphobos.patch

f61693
2019-01-17  Jakub Jelinek  <jakub@redhat.com>
f61693
f61693
	* d-spec.cc (lang_specific_driver): Make -shared-libphobos
f61693
	the default rather than -static-libphobos.
f61693
f61693
--- gcc/d/d-spec.cc.jj	2019-01-01 12:37:49.502444257 +0100
f61693
+++ gcc/d/d-spec.cc	2019-01-17 17:09:45.364949246 +0100
f61693
@@ -408,9 +408,9 @@ lang_specific_driver (cl_decoded_option
f61693
   /* Add `-lgphobos' if we haven't already done so.  */
f61693
   if (phobos_library != PHOBOS_NOLINK)
f61693
     {
f61693
-      /* Default to static linking.  */
f61693
-      if (phobos_library != PHOBOS_DYNAMIC)
f61693
-	phobos_library = PHOBOS_STATIC;
f61693
+      /* Default to shared linking.  */
f61693
+      if (phobos_library != PHOBOS_STATIC)
f61693
+	phobos_library = PHOBOS_DYNAMIC;
f61693
 
f61693
 #ifdef HAVE_LD_STATIC_DYNAMIC
f61693
       if (phobos_library == PHOBOS_STATIC && !static_link)