Andrew Eikum : winegcc: Pass -static-libstdc++ to the linker.
Alexandre Julliard
julliard at winehq.org
Mon Dec 3 15:28:53 CST 2018
Module: wine
Branch: master
Commit: 590ccd0f5ce03dd2417d6ea057459f073a556ab5
URL: https://source.winehq.org/git/wine.git/?a=commit;h=590ccd0f5ce03dd2417d6ea057459f073a556ab5
Author: Andrew Eikum <aeikum at codeweavers.com>
Date: Mon Dec 3 09:05:14 2018 -0600
winegcc: Pass -static-libstdc++ to the linker.
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
tools/winegcc/winegcc.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index 5136cf3..b5fa881 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -71,8 +71,9 @@
*
* Linker Options
* object-file-name -llibrary -nostartfiles -nodefaultlibs
- * -nostdlib -s -static -static-libgcc -shared -shared-libgcc
- * -symbolic -Wl,option -Xlinker option -u symbol --image-base
+ * -nostdlib -s -static -static-libgcc -static-libstdc++
+ * -shared -shared-libgcc -symbolic -Wl,option
+ * -Xlinker option -u symbol --image-base
*
* Directory Options
* -Bprefix -Idir -I- -Ldir -specs=file
@@ -1288,8 +1289,9 @@ static int is_linker_arg(const char* arg)
{
static const char* link_switches[] =
{
- "-nostdlib", "-s", "-static", "-static-libgcc", "-shared", "-shared-libgcc", "-symbolic",
- "-framework", "--coverage", "-fprofile-generate", "-fprofile-use"
+ "-nostdlib", "-s", "-static", "-static-libgcc", "-static-libstdc++",
+ "-shared", "-shared-libgcc", "-symbolic", "-framework", "--coverage",
+ "-fprofile-generate", "-fprofile-use"
};
unsigned int j;
More information about the wine-cvs
mailing list