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

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