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

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