gcc/gcc12-d-shared-libphobos.patch

21 lines
764 B
Diff
Raw Normal View History

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