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

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