From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16003 invoked by alias); 30 Apr 2013 12:12:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 15957 invoked by uid 48); 30 Apr 2013 12:12:05 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/57123] code compiled and linked with -fopenmp does not load the correct omp library at run-time Date: Tue, 30 Apr 2013 12:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status CC Resolution Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg02426.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57123 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |jakub at gcc dot gnu.org Resolution| |INVALID --- Comment #1 from Jakub Jelinek 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.