tags 383348 + wontfix
thanks

I think this is actually a bug in gcc, see also the -( option
in the ld documentation.

FWIW:

tg@zigo:~ $ diet -v gcc -lpthread t.c                                           
                                
gcc -nostdlib -static -L/usr/lib/diet/lib-x86_64 
/usr/lib/diet/lib-x86_64/start.o -lpthread t.c -isystem /usr/lib/diet/include 
-D__dietlibc__ /usr/lib/diet/lib-x86_64/libc.a -lgcc -fno-stack-protector 
/tmp/ccimKYxu.o: In function 
ain':
t.c:(.text+0xa): undefined reference to thread_create'
collect2: ld returned 1 exit status
1|tg@zigo:~ $ diet -v gcc -Wl,-\( -lpthread t.c -Wl,-\)                         
                                
gcc -nostdlib -static -L/usr/lib/diet/lib-x86_64 
/usr/lib/diet/lib-x86_64/start.o -Wl,-( -lpthread t.c -Wl,-) -isystem 
/usr/lib/diet/include -D__dietlibc__ /usr/lib/diet/lib-x86_64/libc.a -lgcc 
-fno-stack-protector 

So, with -( and -) things work. Please use that as a workaround.

bye,
//mirabilos
-- 
  “Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool.”
                                                -- Edward Burr



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to