Closed dmikushin closed 1 year ago
What works is:
./configure --program-prefix=cuda- --enable-cuda --enable-targets=x86_64-unknown-linux-gnu,m68k-unknown-linux-gnu CFLAGS='-I/opt/cuda/include' LIBS='-lpthread' LDFLAGS='-lpthread'
I.e. both LIBS
and LDFLAGS
.
And:
LOADLIBES = -ldl $(RDYNAMIC) -lpthread
in gdb/config/i386/linux64.mh
Thank you :+1:
Configured 7.5 branch with:
Fails to link the gdb executable during the build process:
The reason is
-lpthread
must apper after object files and static libraries, i.e. in the end of the command line, rather than in the beginning.