--- Comment #7 from jakub at gcc dot gnu dot org 2007-10-26 06:49 ---
Using -static for threaded programs is highly discouraged in glibc, for many
reasons. If you want to do it anyway for whatever weird reason, you usually
need
to use -Wl,--whole-archive -lnptl -Wl,--no-whole-archive.
--- Comment #6 from pinskia at gcc dot gnu dot org 2007-09-29 08:50 ---
(In reply to comment #5)
> I didn't think that -static was causing the problem since the application
> seems
> to execute correctly with the -m32 option removed, and with the -static
> remaining.
glibc is slightly
--- Comment #5 from spollmann at gmail dot com 2007-09-29 07:10 ---
(In reply to comment #4)
> (In reply to comment #3)
> > What happens if you don't use -static?
> if static is not used (and the LD_LIBRARY_PATH points to the correct location
> ;)
> the program seems to execute correctly
--- Comment #4 from spollmann at gmail dot com 2007-09-29 07:04 ---
(In reply to comment #3)
> What happens if you don't use -static?
if static is not used (and the LD_LIBRARY_PATH points to the correct location
;)
the program seems to execute correctly.
--
http://gcc.gnu.org/bugzi
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-09-28 09:36 ---
What happens if you don't use -static?
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-09-28 09:36 ---
-static is not really supported for glibc and pthreads/openmp.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--