Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rochester!rutgers!sri-spam!ames!sdcsvax!ucbvax!XEROX.COM!"James_A._Gray.OsbuSouth" From: "James_A._Gray.OsbuSouth"@XEROX.COM Newsgroups: comp.os.vms Subject: Re: linking against RTLs Message-ID: <870803-015017-1060@Xerox> Date: Mon, 3-Aug-87 04:49:53 EDT Article-I.D.: Xerox.870803-015017-1060 Posted: Mon Aug 3 04:49:53 1987 Date-Received: Thu, 6-Aug-87 04:11:13 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 29 Question: I want to link images that reference VMSRTL and LIBRTL such that the code I use from the library winds up *in the image*, not simply mapped at activation time. This is so the resultant image can be run on a site with a lower version of VMS. [No flames about why you shouldn't do that -- if the image doesn't use newer system calls or the like it'll be fine.] I've ding near shredded the linker manual trying to find out how to convince LINK to include the code in my image. Can it be done, and if so, how?? The idea here is to generate images that have *no* shared-library dependencies and can run "anywhere" [in the 4.x universe, I suppose]. Answer: If you are NOT running on a MircoVAX then all you need to do is to include the qualifier /NOSYSSHR on your link command. If you ARE running on a MicroVAX then you will need to get access to the libraries that are distributed with standard VMS unless you use a small enough subset of the VMS libraries; if you are then just use /NOSYSSHR. Not all of the modules are there in the object libraries for MicroVMS since it was felt that they take up too much room (per the documentation). The way to insure that you are not linked to any shareable libraries that you don't want to be, is to do an ANALYZE/IMAGE of the .EXE files and check the shareable image list near the end. Jim