This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gold patch] Fix testsuite failures caused by -static-libgcc and -static-libstdc++ options

Sorry, resending with a proper subject line.

---------- Forwarded message ----------
From: Cary Coutant <>
Date: Thu, Dec 20, 2012 at 3:15 PM
Subject: Fix testsuite failures caused by -static-libgcc and
-static-libstdc++ options
To: Ian Lance Taylor <>, Binutils <>

This patch adds -shared-libgcc and -Bdynamic -lstdc++ options to
counteract the effect of the -static... options now passed in from the
top-level config. With a static libstdc++, the link of debug_msg_so
succeeds instead of printing several undefined variables, because we
suppress the printing of undefined variables when building a shared
object with unresolved DT_NEEDED entries.

Tested on x86_64. OK to commit?


        * testsuite/ (debug_msg_so.err): Add -shared-libgcc and
        -Bdynamic -lstdc++ options.
        (debug_msg_ndebug.err): Likewise.
        * testsuite/ Regenerate.

Attachment: gold-no-static-lib-patch.txt
Description: Text document

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]