This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Library creation command
- From: Bruce Korb <bkorb at pacbell dot net>
- To: Matthias dot Dietrich at st dot com
- Cc: automake at gnu dot org
- Date: Wed, 23 Oct 2002 11:37:57 -0700
- Subject: Re: Library creation command
- References: <3DB6AF66.5070503@st.com>
Matthias Dietrich wrote:
> Unfortunately we run into a big problem. Automake assumes
> that a library is built by calling "ar cru" and at least
> one of our machine has a toolset where "ar" is not
> available. We have another tool to build a library, it's not
> called "ar" and it doesn't take "cru" as arguments.
>
> Just to give you a little more information: this machine is
> an embedded system on which we cannot run the compiler,
> linker, etc. We need to cross compile from another workstation.
> On this workstation a local "ar" is available but it breaks
> the object files for our embedded system. So I really need to
> use the platform-specific tool to build libraries.
>
> I found that replacing "ar" is possible by inserting
> AC_SUBST(AR) into the configure.in file and then setting
> AR to my tool. But the "cru" parameters seem to be hardcoded
> into automake.
May I recommend a shell script that takes the "cru" argument
and invokes the appropriate tool with the appropriate args?