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

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