https://sourceware.org/bugzilla/show_bug.cgi?id=32006

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |NOTABUG
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Felix von Leitner from comment #0)
> I'm not quite sure what is going on here.
> Basically, I'm linking a program like this:
> 
>   $ diet -v gcc -o t test.c -pthread -Wl,-Map,mapfile
> 
> diet is a wrapper from dietlibc and it will transform the command line to
> this:
> 
>   $ gcc -nostdlib -static -L/opt/diet/lib-x86_64
> /opt/diet/lib-x86_64/start.o -o t test.c -D_REENTRANT -lpthread
> -Wl,-Map,mapfile -isystem /opt/diet/include -D__dietlibc__
> /opt/diet/lib-x86_64/libc.a -lgcc /opt/diet/lib-x86_64/crtend.o
>
> Now, there is a symbol called __stdio_init_file that is exported by
> fdglue2.o in libc.a and it is also exported from pthread_fdglue2.o in
> libpthread.a.

This is expected. Please add -lpthread after libc.a.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to