|
From: Laurent N <lau...@gm...> - 2022-04-12 16:37:41
|
Hi Luigi Many thanks, I'll give it a try with those parameters. On Tue, Apr 12, 2022 at 1:10 AM Luigi Ballabio <lui...@gm...> wrote: > Also, I'm using those flags when building both the C++ library and the > Python module. > > > On Tue, Apr 12, 2022 at 10:07 AM Luigi Ballabio <lui...@gm...> > wrote: > >> 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 >>> >> |