[PolyORB-users] Re: pragma Linker_Options

Martin Krischik krischik at users.sourceforge.net
Sat Feb 5 20:26:07 CET 2005


Am Samstag, 5. Februar 2005 20:01 schrieb Simon Wright:
> > Date: Mon, 17 Jan 2005 21:00:14 GMT
> > From: Simon Wright <simon at pushface.org>
> >      Linker_Switches :=
> >        (
> > 	"-L/opt/local/lib",
> > 	"-lpolyorb-corba",
> > 	"-lpolyorb-corba-messaging",
> > 	"-lpolyorb-corba-portableinterceptor",
> > 	"-lpolyorb-corba-rtcorba",
> > 	"-lpolyorb-corba-cos-event",
> > 	"-lpolyorb-corba-cos-naming",
> > 	"-lpolyorb-corba-cos-time",
> > 	"-lpolyorb-corba-cos-naming-impl",
> > 	"-lpolyorb-giop",
> > 	"-lpolyorb-giop-diop",
> > 	"-lpolyorb-giop-iiop",
> > 	"-lpolyorb-giop-miop"
> >        );
>
> and (if you remove all the pragma Linker_Options) -lpolyorb.
>
> 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 ...)

Well I have it first:

   package Linker is
      for Default_Switches ("ada")
      use (
         "-L" & Ada & "/lib",
         "-lxmlada_input_sources",
         "-lxmlada_sax",
         "-lxmlada_unicode",
         "-lxmlada_dom",
         "-lpolyorb",
         "-lpolyorb-corba",
         "-lpolyorb-corba-messaging",
         "-lpolyorb-corba-portableinterceptor",
         "-lpolyorb-corba-rtcorba",
         "-lpolyorb-corba-cos-event",
         "-lpolyorb-corba-cos-naming",
         "-lpolyorb-corba-cos-time",
         "-lpolyorb-corba-cos-event-impl",
         "-lpolyorb-corba-cos-ir-impl",
         "-lpolyorb-corba-cos-naming-impl",
         "-lpolyorb-corba-cos-time-impl",
         "-lpolyorb-dsa",
         "-lpolyorb-moma",
         "-lpolyorb-giop",
         "-lpolyorb-giop-diop",
         "-lpolyorb-giop-iiop",
         "-lpolyorb-giop-miop",
         "-lpolyorb-soap",
         "-lpolyorb-web_common",
                 "-lpolyorb-srp",

And it is working. At least for *x - Windows is another matter.

Martin
-- 
Martin Krischik
mailto://krischik@users.sourceforge.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/polyorb-users/attachments/20050205/8bcc3677/attachment.bin


More information about the PolyORB-users mailing list