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

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