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

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