https://bugs.llvm.org/show_bug.cgi?id=33983

            Bug ID: 33983
           Summary: Unnecessary dependency on glibc 2.18 added by
                    __cxa_thread_atexit_impl
           Product: libc++abi
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedb...@nondot.org
          Reporter: thomasander...@google.com
                CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com

I'm compiling libc++abi with HAVE___CXA_THREAD_ATEXIT_IMPL undefined. 
__cxa_thread_atexit_impl was added to glibc in version 2.18, but I plan to
deploy on systems that only have glibc 2.17.  However, when linking libc++abi
against my system glibc (2.19), __cxa_thread_atexit_impl@GLIBC_2.18 gets
included as a required symbol.

The check for __cxa_thread_atexit_impl should not be done at link time, but
should use dlopen()/dlsym() to do the check instead.

If there are better options to solve this issue without having to change
libc++abi, I'd be more than happy to hear about them

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to