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

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