http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52858
Bug #: 52858
Summary: gnatmake ignores -R (Do not use a run_path_option ...)
when linking dynamic libraries
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: ada
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 27082
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27082
Patch to correct unexpected run path handling for dynamic libraries
When linking dynamic libraries (as opposed to executables), gnatmake adds run
path information regardless of whether '-R' was provided. This can be confirmed
with a simple GNAT project like:
project Without_rpath is
for Library_Name use "without_rp";
for Library_Kind use "dynamic";
for Object_Dir use "obj";
for Library_Dir use "lib";
for Source_Dirs use ("src");
package Builder is
for Default_Switches ("Ada") use ("-R", "-v");
end Builder;
end Without_rpath;
The attached patch corrects this behaviour.