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

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