winegcc: Pass -static-libstdc++ to the linker.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Andrew Eikum 2018-12-03 09:05:14 -06:00 committed by Alexandre Julliard
parent cc06703e3a
commit 590ccd0f5c
1 changed files with 6 additions and 4 deletions

View File

@ -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;