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

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