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

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