This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/57123] code compiled and linked with -fopenmp does not load the correct omp library at run-time


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]