Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!bionet!ames!uhccux!munnari.oz.au!uqcspe!batserver!bigm From: bigm@batserver.cs.uq.oz (Michael Pilling) Newsgroups: comp.sources.wanted Subject: convert .o modules to archives with entry per function Message-ID: <1359@batserver.cs.uq.oz> Date: 22 Aug 89 13:11:55 GMT Sender: news@batserver.cs.uq.oz Reply-To: bigm@batserver.cs.uq.oz Organization: Computer Science Department, The University of Queensland, Brisbane, Australia Lines: 20 I am writing some library modules, but unfortunately the brain damaged unix linker links in ALL the library even if you only use one function. This very annoying if some of the libraries are large. It seems the only way to create a random library (ranlib) is to write every function as a separate .c file, compile these to .o's and then archive them. This would be a pain. I'm after a utility for apollos or suns (preferably machine independent) that takes a .o file containing multiple functions and creates from it a .o file for each function in the original so that each of the resulting files contain only one function and can then be archived Can anyone help or correct my ignorance about how to construct libraries. Michael Pilling, Computer Science Department, University of Queensland, St Lucia, 4067 Australia.