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

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