Args list too long
Scott Durrant
sdurrant@howard.genetics.utah.edu
Thu Jan 11 12:46:00 GMT 2001
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 2001年1月11日, 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 2001年1月11日, 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
> >
> >
> >
>>
More information about the Java
mailing list