This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/57123] code compiled and linked with -fopenmp does not load the correct omp library at run-time
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Apr 2013 12:12:05 +0000
- Subject: [Bug driver/57123] code compiled and linked with -fopenmp does not load the correct omp library at run-time
- Auto-submitted: auto-generated
- References: <bug-57123-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57123
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution| |INVALID
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-30 12:12:05 UTC ---
That is a user error, gcc isn't supposed to handle this for you. If you have
multiple versions of libgomp.so on your system, just use -Wl,-rpath,/some/path/
or LD_LIBRARY_PATH to point the program at the right version.
Like glibc, libgomp is symbol versioned and backward compatible, keeping the
same SONAME, so you really want the latest version of the library from all
versions needed by programs that link against it.