tstellar / rpms / gcc

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