diff options
author | Guillem Jover <guillem@debian.org> | 2016-09-07 04:49:33 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2016-10-30 06:29:50 +0100 |
commit | ed6cbcf7a1706523580a91491adb9ecd55098f9c (patch) | |
tree | 40b6ac72344e93405da0fa938198479e8b856cfc /dselect | |
parent | 1fc6530294334e421c0da3652181eedd2669433e (diff) | |
download | dpkg-ed6cbcf7a1706523580a91491adb9ecd55098f9c.tar.gz |
dselect: Implement local abi::__cxa_pure_virtual
When using g++ if we provide our version of this function we can avoid
the dependency on either libstdc++ or libsup++.
Diffstat (limited to 'dselect')
-rw-r--r-- | dselect/cxx-support.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dselect/cxx-support.cc b/dselect/cxx-support.cc index d850ed591..57c9d5cea 100644 --- a/dselect/cxx-support.cc +++ b/dselect/cxx-support.cc @@ -26,6 +26,9 @@ #include <assert.h> #include <stdlib.h> +#ifdef HAVE_CXXABI_H +#include <cxxabi.h> +#endif #include <dpkg/dpkg.h> @@ -74,3 +77,11 @@ operator delete[](void *a, size_t size) DPKG_ATTR_NOEXCEPT { free(a); } + +#ifdef HAVE___CXA_PURE_VIRTUAL +extern "C" void +abi::__cxa_pure_virtual() +{ + internerr("pure virtual function called"); +} +#endif |