This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: Args list too long
- To: "Bradley A. Smith" <yeldar at home dot com>
- Subject: Re: Args list too long
- From: Scott Durrant <sdurrant at howard dot genetics dot utah dot edu>
- Date: Thu, 11 Jan 2001 13:26:31 -0700 (MST)
- cc: jeff dot sturm at commerceone dot com, tromey at redhat dot com, java-discuss at sources dot redhat dot com
try something like
COLLAPSED_OBJS = obj0.o obj1.o obj2.o ... objn.o
my_lib.so : $(COLLAPSED_OBJS)
ld $(DYNAMIC_LIB_SWITCHES) $(LINK_SWITCHES) my_lib.so $(PAP_OBJS)
$(LIB_SWITCHES)
obj0.o : obj0.c
$(FC) $(FFLAGS) obj0.c
obj1.o : obj1.c
$(FC) $(FFLAGS) obj1.c
obj2.o : obj2.c
$(FC) $(FFLAGS) obj2.c
.
.
.
objn.o : objn.c
$(FC) $(FFLAGS) objn.c
Scott Durrant
Human Genetics
University of Utah
scott@genetics.utah.edu
On Thu, 11 Jan 2001, Bradley A. Smith wrote:
> > You don't want to do that with shared libraries. Instead you might
> collapse
> > groups of objects into a single object, maybe at the package level. Then
> the
> > final link command will combine perhaps dozens of objects instead of
> hundreds.
> > (Similar to how the Linux kernel builds.)
>
> What is the appropriate way to collapse groups of objects into a single
> object?
>
> Thanks,
> Bradley
>
>
>