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

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