This is the mail archive of the gcc-patches@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]

[Ada] use -shared-libgcc when appropriate


Tested on x86-linux, committed on mainline.

When gnatbind is invoked with -shared, it is often necessary
to use the shared version of libgcc. Starting with GCC 3,
the way to ensure that the shared version of libgcc will
be used and its path is correctly recorded in the executable
is to use the switch -shared-libgcc when invoking gcc for
linking.
To test, build foo.adb with the command
   gnatmake foo.adb -bargs -shared
and invoke the resulting executable.
--
procedure Foo is
begin
   null;
end;

2004-11-18  Vincent Celier  <celier@adacore.com>

	* make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
	gnatbind is invoked with -shared.

Attachment: difs.14
Description: Text document


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