[PolyORB-users] Re: pragma Linker_Options
Jerome Hugues
hugues at infres.enst.fr
Mon Feb 7 14:28:04 CET 2005
Simon Wright (simon at pushface.org):
> I suspect that -lpolyorb has to be last, at any rate if doing a static
> (debug) link? Does using Linker_Options get this right? (perhaps I'm
> remembering old ld behaviour ...)
The effet of pragma Linker_Options is implementation specific. In the
case of GNAT, it is defined in the GNAT RM, which states in 4. (77) that:
" The string passed to Linker_Options is presented uninterpreted as an
argument to the link command, unless it contains Ascii.NUL
characters. NUL characters if they appear act as argument separators,
so for example
pragma Linker_Options ("-labc" & ASCII.Nul & "-ldef");
causes two separate arguments -labc and -ldef to be passed to the
linker. The order of linker options is preserved for a given unit. The
final list of options passed to the linker is in reverse order of the
elaboration order. For example, linker options fo a body always appear
before the options from the corresponding package spec."
--
Jerome
More information about the PolyORB-users
mailing list