diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-12-09 21:42:04 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-12-12 09:16:34 +0000 |
commit | cfd2691e5bf398304d7816227b933e53907b6204 (patch) | |
tree | bad8841e992dddc11a318cfa0b0d574570e739d9 /configure.ac | |
parent | d6f2dd831a37ce214c05ed558c4fef2b76b9b121 (diff) |
[API CHANGE] Remove salcpprt static library
...containing replacements for global operator new/delete (that can be linked
into executables), but which is no longer used. The mail thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2012-March/028690.html>
"operator new no longer routes through rtl_AllocMemory in libsalcpprt under
gbuild link rules" has the details of how this was used on some platforms (but
not on others) before the switch to gbuild, and has been "lost" ever since---but
apparently a loss not mourned much over the years.
For the SDK, c5f974287fd04bb529de145113133b9e35687702 "INTEGRATION: CWS jsc3:
#i62434# copy libsalcpprt.a" added the library (under Linux) and
6db9c5af960f9787e33e4addc56bddbb1695a402 "INTEGRATION: CWS jsc3: #i62434# extend
link options for executbales to link libsalcpprt.a, LINUX only" added its use to
odk/settings/settings.mk, but fc0ca57f2cd649c6330171445a06b80e2143a0e9
"INTEGRATION: CWS jsc21" removed that use again (for no documented reason). So
this is an incompatible change, but unlikely to actually affect any users of the
SDK.
Change-Id: Ia38b4c439f21fca3f5d9af7d1a34054e992054e9
Reviewed-on: https://gerrit.libreoffice.org/31810
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/configure.ac b/configure.ac index 2cf3ebf543d0..4a0dac756da6 100644 --- a/configure.ac +++ b/configure.ac @@ -6394,45 +6394,6 @@ if test "$cxx11_utf16_string_literal" = yes; then AC_DEFINE([HAVE_CXX11_UTF16_STRING_LITERAL]) fi -AC_MSG_CHECKING([whether $CXX supports C++14 sized deallocation]) -dnl At least Clang -fsanitize=address causes "multiple definition of -dnl `operator delete(void*, unsigned long)'" also defined in -dnl projects/compiler-rt/lib/asan/asan_new_delete.cc: -save_CXX=$CXX -if test "$COM_IS_CLANG" = TRUE; then - my_CXX= - for i in $CXX; do - case $i in - -fsanitize=address) - ;; - *) - my_CXX="$my_CXX $i" - ;; - esac - done - CXX=$my_CXX -fi -save_CXXFLAGS=$CXXFLAGS -CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11" -AC_LANG_PUSH([C++]) -AC_RUN_IFELSE([AC_LANG_PROGRAM([[ - #include <cstddef> - #include <cstdlib> - void operator delete(void *) throw () { std::exit(1); } - void operator delete(void *, std::size_t) throw () { std::exit(0); } - struct S { S() { throw 0; } }; - ]],[[ - try { new S; } catch (...) {} - return 1; - ]])], [cxx14_sized_deallocation=yes], [cxx14_sized_deallocation=no], [cxx14_sized_deallocation=no]) -AC_LANG_POP([C++]) -CXX=$save_CXX -CXXFLAGS=$save_CXXFLAGS -AC_MSG_RESULT([$cxx14_sized_deallocation]) -if test "$cxx14_sized_deallocation" = yes; then - AC_DEFINE([HAVE_CXX14_SIZED_DEALLOCATION]) -fi - HAVE_GCC_PRAGMA_OPERATOR= dnl _Pragma support (may require C++11) if test "$GCC" = "yes" -o "$COM_IS_CLANG" = TRUE; then |