[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Libtool, rpath, and

From: Andy Spencer
Subject: Libtool, rpath, and
Date: Tue, 29 Nov 2011 05:30:06 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

I'm building a library of mine on Fedora 64-bit and running into some
problems. I'm running configure as follows:

  ./configure --prefix=/usr --libdir=/usr/lib64

The problem is that the wrong version of is being used at
runtime. The correct version is /usr/lib64/nvidia/* but any
application built against my library uses /usr/lib64/* instead.

This seems to be caused by libtool adding a -rpath flag which forces the
application to use the /usr/lib64 version provided by mesa even though has been properly configured to use the nvidia version.

I can fix the problem for other programs by manually deleting all the
.la files provided by my library after I install it. However, my library
also comes with a demo program which is compiled along side the library
and I don't know how to make that use the correct version of libGL.

Is there any way to prevent the demo program from getting build with a
rpath, or are there any other ways to fix this?

Attachment: pgp9o2L4KdTKP.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]