axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <sam...@wso2.com>
Subject Re: [Axis2] Same source file compiled multiple times in the build
Date Fri, 28 Apr 2006 05:03:53 GMT
Hmmm, looks like it build twice; one for static lib and one for dynamic 
link.
I tried using --enable-static=no with configure and then it compiles 
only once.

May be we should include --enable-static=no in build.sh

Thanks,
Samisa...

Damitha Kumarage wrote:

> Hi Samisa,
> This happens only when it compile a library. When it compile an 
> executable it won't happen twice. For example if you test this for an 
> client executable you can see it compile only once. But if you go to 
> server samples you can see that it build twice. I think this is how 
> GNU build works and we can't do anything about it. To verify this I 
> looked at other two projects(libdvdcss and wsdl pull) using GNU build 
> system and found that there same thing happen.
> thanks
> damitha
>
> Samisa Abeysinghe wrote:
>
>> Damitha, the problem is partially fixed but not completely.
>>
>> Digging further into the problem, I found that almost all source 
>> files are compiled twice.
>> 1. Source file compiled with "-fPIC -DPIC" options and object placed 
>> in .libs folder inside source folder
>> 2. Source file compiled without "-fPIC -DPIC" options and object 
>> placed in source folder
>>
>> I do not think that this is necessary, we should have only one 
>> compiling of a given source.
>>
>> Thanks,
>> Samisa...
>>
>> Damitha Kumarage wrote:
>>
>>> Hi Samisa,
>>> Thanks very much for pointing this out.  I found the reason for this 
>>> and fixed it.
>>>
>>> Damitha
>>> Samisa Abeysinghe wrote:
>>>
>>>> It looks to me that the same source file is compiled more than 
>>>> once  in some cases when I do a full build.
>>>> This must be the reason for the *very* slow build time.
>>>>
>>>> To verify this do a 'make clean' and then 'sh build.sh > out'
>>>> Then 'vi out' and '/http_worker.c' and search next. There are 
>>>> multiple occurences.
>>>>
>>>> This we have to fix. It is annyoing to wait till a build finishes - 
>>>> takes *so long* :-(
>>>>
>>>> Samisa...
>>>>
>>>
>>>
>>
>>
>
>


Mime
View raw message