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

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