[cfe-dev] Missing /usr/lib/cxa_finalize.o on Solaris 11.1

"C. Bergström" cbergstrom at pathscale.com
Wed Jun 12 13:01:30 PDT 2013


On 06/13/13 02:57 AM, Игорь Пашев wrote:
> 2013/6/12 "C. Bergström"<cbergstrom at pathscale.com>:
>>> And  /usr/lib/cxa_finalize.o looks like a random name :-) [1]
>>> cxa_finalize.c and cxa_atexit.c are not compiled into libcxxrt.
>> Send a patch or a pull request and I'll get it merged after review - Thanks
>> for catching this
> It looks quite trivial, but I want to test it on Solaris:
>
> diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
> index 0b44852..ba3b906 100644
> --- a/src/CMakeLists.txt
> +++ b/src/CMakeLists.txt
> @@ -8,6 +8,8 @@ set(CXXRT_SOURCES
>       memory.cc
>       auxhelper.cc
>       libelftc_dem_gnu3.c
> +    cxa_atexit.c
> +    cxa_finalize.c
>      )
>
On linux this is provided by glibc - At the very least we'd need to wrap 
it in an OS check. Please test and report back




More information about the cfe-dev mailing list