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

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