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