This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Args list too long


the ld line should say
	ld $(DYNAMIC_LIB_SWITCHES) $(LINK_SWITCHES) my_lib.so 
$(COLLAPSED_OBJS) $(LIB_SWITCHES)

Scott Durrant
Human Genetics
University of Utah
scott@genetics.utah.edu


On Thu, 11 Jan 2001, Scott Durrant wrote:

> 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
> > 
> > 
> > 
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]