This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Re: Re: Adding a new thread model to GCC
- From: "lh_mouse"<lh_mouse at 126 dot com>
- To: "Jonathan Wakely"<jwakely dot gcc at gmail dot com>
- Cc: "gcc"<gcc at gcc dot gnu dot org>, "mingw-w64-public"<mingw-w64-public at lists dot sourceforge dot net>
- Date: Mon, 18 Apr 2016 17:02:41 +0800
- Subject: Re: Re: Re: Adding a new thread model to GCC
- Authentication-results: sourceware.org; auth=none
- References: <2f3897eb dot bbc0e dot 1540ee9aa0b dot Coremail dot lh_mouse at 126 dot com> <CAH6eHdQ2b_NLLC6Hyq=tKgXhgAEhTdV1d2+sv6enHN7wG4JESQ at mail dot gmail dot com> <17edbaeb dot d295d dot 154284f950f dot Coremail dot lh_mouse at 126 dot com><CAH6eHdT0gqPkYh2x_udUH6QT39eEpm_DJNtSETdnUA4-yUUdEw at mail dot gmail dot com>
Oh I missed the build-in specs in gcc/config/i386/mingw32.h and it was lack of -lmcfgthread in it that caused the failure. Stage 1 seemed ok.
Already hacked that. Rebuilding.
Apologize for that.
------------------
Best regards,
lh_mouse
2016-04-18
-------------------------------------------------------------
åääïJonathan Wakely <jwakely.gcc@gmail.com>
åéææï2016-04-18 16:59
æääïlh_mouse
æéïgcc,mingw-w64-public
äéïRe: Re: Adding a new thread model to GCC
On 18 April 2016 at 08:39, lh_mouse wrote:
> I have added a thread model and added its corresponding header files. But it failed the linker.
>
> The file 'gcc/libgcc/config/i386/t-mingw-pthread' which contained two lines:
> SHLIB_PTHREAD_CFLAG = -pthread
> SHLIB_PTHREAD_LDFLAG = -Wl,-lpthread
>
> I copied the file to 'gcc/libgcc/config/i386/t-mingw-mcfgthread' and modified the two lines to:
> SHLIB_PTHREAD_CFLAG = -lmcfgthread
> SHLIB_PTHREAD_LDFLAG = -Wl,-lmcfgthread
>
> It didn't work and I got a number of undefined references. The command line that invoked the linker didn't include either option.
>
> How to solve this problem?
What are the linker errors? When do they happen?