Archiving last step
Bram Neijt <[email protected]> Fri, 2 Sep 2005 13:15:47 +0200
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Hi. I use sepereate files for my functions, and in the last linking phase, a-a-p will run g++ -o mainprogram mainprogram.o object1.o object2.o object3.o However, the function defined in object2 might not be used by mainprogram.o. This will create a larger binary then necesarry. The solution to this problem is an intermediat archive "ar ru mainprogram.a object1.o object2.o object3.o" (not totally sure about the ar command) and then do the final link phase with "g++ -o mainprogram mainprogram.o mainprogram.a" the executable will be smaller then using the seperate objects. How can I add this to my aap program-rule? Greetings, Bram ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf