diff options
author | Jonathan Yong <10walls@gmail.com> | 2020-05-30 03:53:16 +0000 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:09:24 -0300 |
commit | d17fcc72e4a2f4b7afb9ee739680b2f56669a841 (patch) | |
tree | efeaab6899c640fa19fe6e00dea7d00febd3263c /gcc | |
parent | 4e03ad3985a1693363649db90f2f1a2e1fe629bb (diff) | |
download | gcc-d17fcc72e4a2f4b7afb9ee739680b2f56669a841.zip gcc-d17fcc72e4a2f4b7afb9ee739680b2f56669a841.tar.gz gcc-d17fcc72e4a2f4b7afb9ee739680b2f56669a841.tar.bz2 |
gcc/config/i386/mingw32.h: Ensure `-lmsvcrt` precede `-lkernel32`
This is necessary as libmsvcrt.a is not a pure import library, but
also contains some functions that invoke others in KERNEL32.DLL.
gcc/
* config/i386/mingw32.h (REAL_LIBGCC_SPEC): Insert -lkernel32
after -lmsvcrt. This is necessary as libmsvcrt.a is not a pure
import library, but also contains some functions that invoke
others in KERNEL32.DLL.
Signed-off-by: Liu Hao <lh_mouse@126.com>
Signed-off-by: Jonathan Yong <10walls@gmail.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i386/mingw32.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h index 1bbabfe..321c30e 100644 --- a/gcc/config/i386/mingw32.h +++ b/gcc/config/i386/mingw32.h @@ -165,7 +165,7 @@ along with GCC; see the file COPYING3. If not see #define REAL_LIBGCC_SPEC \ "%{mthreads:-lmingwthrd} -lmingw32 \ " SHARED_LIBGCC_SPEC " \ - -lmoldname -lmingwex -lmsvcrt" + -lmoldname -lmingwex -lmsvcrt -lkernel32" #undef STARTFILE_SPEC #define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \ |