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

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