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

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