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

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