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

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