Re: [cgkit-user] segfault help?
Brought to you by:
mbaas
|
From: Matthias B. <mat...@gm...> - 2012-03-30 10:11:46
|
Hi Alejandro,
On 29.03.12 07:37, Alejandro Aguilera Martínez wrote:
>>>>> from distutils.sysconfig import get_config_vars
>>>>> get_config_vars("OPT")
>> ['-DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
>> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
>> -D_GNU_SOURCE -fPIC']
>
> Here are my results:
>
>>>> from distutils.sysconfig import get_config_vars
>>>> get_config_vars("OPT")
> ['-DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes']
>[...]
> I guess the next step is to add that option an recompile cgkit... but I
> have no idea how to do that. What do I have to do now?
Looks like we are close. To set that option, you have to add the
following line to your config.cfg:
CC_ARGS += ["-fexceptions"]
(see this page in the docs if you haven't used a config file before:
http://cgkit.sourceforge.net/doc2/building.html#building-from-the-sources)
Then you should rebuild the wrappers. Simply delete the build directory
and run the setup script again. It's not necessary to rebuild the C++
support lib, the config file only affects the wrappers.
Let me know if this works and I will add this option to the setup script.
Cheers,
- Matthias -
|