LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-01-2002, 08:12 AM   #1
Griffon26
Member
 
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Rep: Reputation: 30
Is it possible to combine archives with ar?


I have several archives containing object files and want to know if it is possible to combine all of these in one big archive.

The resulting archive should be a collection of object files, not a collection of archives containing object files.

I know it is possible to do this by first extracting all object files and then archiving them again, but this sorta defeats the purpose of having in-between archives.

So, is it possible? Maybe not with ar but with some other tool?

Last edited by Griffon26; 07-01-2002 at 08:17 AM.
 
Old 07-02-2002, 02:30 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
Aren't you already defeating the purpose of having in between archives by wanting it in one complete archive. The complete archive will have no history of what the in between ones looked like anyways.
The only way I know how to do that is the way you described. I don't know what your makefiles or build scripts look like. But instead of creating an in between archive of each collection of object files. Can't you just append the files to the main archive directly.
 
Old 07-02-2002, 02:42 AM   #3
Griffon26
Member
 
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Original Poster
Rep: Reputation: 30
Well, there are like 3 subsystems which each consist of a lot of components. When building a subsystem (which has its own directory), each component (consisting of several source files) is built and produces an archive. At the end these archives are to be combined to form the subsystem archive.

The reason for this is that I don't want the top makefiles to know how a subsystem is built up from components, I just want it to know there are three subsystem archives and it has to make one executable. I also want to be able to build a subsystem archive separately. Finally I need to be able to build one component and then link it with a specified subset of components in the same subsystem for a component test.

Last edited by Griffon26; 07-02-2002 at 02:44 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables mark combine with tc Kendo1979 Linux - Networking 2 11-14-2005 11:59 PM
Combine number and text Ephracis Programming 3 11-17-2004 11:13 AM
Possible to combine kernels? JimBass Linux - Newbie 1 10-06-2004 05:52 PM
Best way to combine files? JockVSJock Programming 4 04-25-2004 07:38 PM
Combine 2 Internet Connections marsial Linux - Networking 3 08-26-2003 04:22 AM


All times are GMT -5. The time now is 06:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration