[Bug ada/52858] New: gnatmake ignores -R (Do not use a run_path_option ...) when linking dynamic libraries
auto33980527 at hushmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Apr 4 01:04:00 GMT 2012
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: unassigned@gcc.gnu.org
ReportedBy: auto33980527@hushmail.com
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.
More information about the Gcc-bugs
mailing list