Adding a new thread model to GCC
lh_mouse
lh_mouse@126.com
Mon Apr 18 07:39:00 GMT 2016
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?
------------------
Best regards,
lh_mouse
2016-04-18
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9000-Added-mcf-thread-model-support-from-mcfgthread.patch
Type: application/octet-stream
Size: 4004 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20160418/c59113ce/attachment.obj>
More information about the Gcc
mailing list