1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

new configure option: NOT_FOR_DISTRIBUTION

fix safemalloc to compile w/o libbfd.

CMakeLists.txt:
  NOT_FOR_DISTRIBUTION option
cmake/readline.cmake:
  simplify libedit/readline detection.
  never use bundled libedit.
  use system readline v6 only if NOT_FOR_DISTRIBUTION=1
configure.cmake:
  use libbfd only if NOT_FOR_DISTRIBUTION=1
include/my_stacktrace.h:
  link with libbfd even w/o safemalloc.
This commit is contained in:
Sergei Golubchik
2011-12-14 10:53:32 +01:00
parent 44d335b828
commit db8f698c8a
8 changed files with 103 additions and 98 deletions

View File

@@ -55,23 +55,22 @@ void my_set_exception_pointers(EXCEPTION_POINTERS *ep);
#endif
#endif
/* at the moment, safemalloc is the main user of libbfd */
#ifndef SAFEMALLOC
#undef HAVE_BFD_H
#endif
#ifdef HAVE_BFD_H
#define HAVE_MY_ADDR_RESOLVE 1
#endif
#ifdef HAVE_MY_ADDR_RESOLVE
typedef struct {
const char *file;
const char *func;
uint line;
} my_addr_loc;
#ifdef HAVE_MY_ADDR_RESOLVE
int my_addr_resolve(void *ptr, my_addr_loc *loc);
const char *my_addr_resolve_init();
#else
#define my_addr_resolve_init() (0)
#define my_addr_resolve(A,B) (1)
#endif
#ifdef HAVE_WRITE_CORE