|
From: Luigi B. <lui...@gm...> - 2022-04-12 08:07:35
|
Hello Laurent,
try passing -g0 to gcc to avoid storing debug information. Also,
passing -O3 might try to optimize for size as well as speed.
Hope this helps,
Luigi
On Tue, Apr 12, 2022 at 9:33 AM Laurent N <lau...@gm...>
wrote:
> Hi,
>
> I wonder if you can share how you build the python library for linux.
> When i install the python addin via pip install, the .so file from the
> distribution is ~30Mo.
>
> However when I build it from scratch on centos 7, i am getting a file
> _QuantLib.cpython[xxx].so which is 130Mo+. I am trrying to reproduce what
> you did before i make some changes for my own use. I tried modifying the
> options passed to gcc, to no avail.
>
> I am using QuantLib 1.24 and QuantLib-SWIG 1.24 and python 3.7.
>
> Appreciate any help or pointers.
>
> Thanks
> Laurent
> _______________________________________________
> QuantLib-users mailing list
> Qua...@li...
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>
|