Add the --with-install-suffix configure option.
Fix some bugs in the Makefile's install target.
This commit is contained in:
@@ -24,16 +24,16 @@
|
||||
#include <pthread.h>
|
||||
|
||||
#define JEMALLOC_MANGLE
|
||||
#include "jemalloc.h"
|
||||
#include "../jemalloc@install_suffix@.h"
|
||||
|
||||
#ifdef JEMALLOC_LAZY_LOCK
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
|
||||
#include "rb.h"
|
||||
#include "internal/rb.h"
|
||||
#if (defined(JEMALLOC_TCACHE) && defined(JEMALLOC_STATS))
|
||||
#include "qr.h"
|
||||
#include "ql.h"
|
||||
#include "internal/qr.h"
|
||||
#include "internal/ql.h"
|
||||
#endif
|
||||
|
||||
extern void (*JEMALLOC_P(malloc_message))(const char *p1, const char *p2,
|
||||
@@ -168,29 +168,29 @@ extern void (*JEMALLOC_P(malloc_message))(const char *p1, const char *p2,
|
||||
#define PAGE_CEILING(s) \
|
||||
(((s) + PAGE_MASK) & ~PAGE_MASK)
|
||||
|
||||
#include "jemalloc_stats.h"
|
||||
#include "jemalloc_mutex.h"
|
||||
#include "jemalloc_extent.h"
|
||||
#include "jemalloc_arena.h"
|
||||
#include "jemalloc_base.h"
|
||||
#include "jemalloc_chunk.h"
|
||||
#include "jemalloc_huge.h"
|
||||
#include "jemalloc_tcache.h"
|
||||
#include "jemalloc_trace.h"
|
||||
#include "internal/jemalloc_stats.h"
|
||||
#include "internal/jemalloc_mutex.h"
|
||||
#include "internal/jemalloc_extent.h"
|
||||
#include "internal/jemalloc_arena.h"
|
||||
#include "internal/jemalloc_base.h"
|
||||
#include "internal/jemalloc_chunk.h"
|
||||
#include "internal/jemalloc_huge.h"
|
||||
#include "internal/jemalloc_tcache.h"
|
||||
#include "internal/jemalloc_trace.h"
|
||||
|
||||
#undef JEMALLOC_H_TYPES
|
||||
/******************************************************************************/
|
||||
#define JEMALLOC_H_STRUCTS
|
||||
|
||||
#include "jemalloc_stats.h"
|
||||
#include "jemalloc_mutex.h"
|
||||
#include "jemalloc_extent.h"
|
||||
#include "jemalloc_arena.h"
|
||||
#include "jemalloc_base.h"
|
||||
#include "jemalloc_chunk.h"
|
||||
#include "jemalloc_huge.h"
|
||||
#include "jemalloc_tcache.h"
|
||||
#include "jemalloc_trace.h"
|
||||
#include "internal/jemalloc_stats.h"
|
||||
#include "internal/jemalloc_mutex.h"
|
||||
#include "internal/jemalloc_extent.h"
|
||||
#include "internal/jemalloc_arena.h"
|
||||
#include "internal/jemalloc_base.h"
|
||||
#include "internal/jemalloc_chunk.h"
|
||||
#include "internal/jemalloc_huge.h"
|
||||
#include "internal/jemalloc_tcache.h"
|
||||
#include "internal/jemalloc_trace.h"
|
||||
|
||||
#undef JEMALLOC_H_STRUCTS
|
||||
/******************************************************************************/
|
||||
@@ -238,26 +238,26 @@ arena_t *arenas_extend(unsigned ind);
|
||||
arena_t *choose_arena_hard(void);
|
||||
#endif
|
||||
|
||||
#include "jemalloc_stats.h"
|
||||
#include "jemalloc_mutex.h"
|
||||
#include "jemalloc_extent.h"
|
||||
#include "jemalloc_arena.h"
|
||||
#include "jemalloc_base.h"
|
||||
#include "jemalloc_chunk.h"
|
||||
#include "jemalloc_huge.h"
|
||||
#include "jemalloc_tcache.h"
|
||||
#include "jemalloc_trace.h"
|
||||
#include "internal/jemalloc_stats.h"
|
||||
#include "internal/jemalloc_mutex.h"
|
||||
#include "internal/jemalloc_extent.h"
|
||||
#include "internal/jemalloc_arena.h"
|
||||
#include "internal/jemalloc_base.h"
|
||||
#include "internal/jemalloc_chunk.h"
|
||||
#include "internal/jemalloc_huge.h"
|
||||
#include "internal/jemalloc_tcache.h"
|
||||
#include "internal/jemalloc_trace.h"
|
||||
|
||||
#undef JEMALLOC_H_EXTERNS
|
||||
/******************************************************************************/
|
||||
#define JEMALLOC_H_INLINES
|
||||
|
||||
#include "jemalloc_stats.h"
|
||||
#include "jemalloc_mutex.h"
|
||||
#include "jemalloc_extent.h"
|
||||
#include "jemalloc_base.h"
|
||||
#include "jemalloc_chunk.h"
|
||||
#include "jemalloc_huge.h"
|
||||
#include "internal/jemalloc_stats.h"
|
||||
#include "internal/jemalloc_mutex.h"
|
||||
#include "internal/jemalloc_extent.h"
|
||||
#include "internal/jemalloc_base.h"
|
||||
#include "internal/jemalloc_chunk.h"
|
||||
#include "internal/jemalloc_huge.h"
|
||||
|
||||
#ifndef JEMALLOC_ENABLE_INLINE
|
||||
void malloc_write4(const char *p1, const char *p2, const char *p3,
|
||||
@@ -346,9 +346,9 @@ choose_arena(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "jemalloc_tcache.h"
|
||||
#include "jemalloc_arena.h"
|
||||
#include "jemalloc_trace.h"
|
||||
#include "internal/jemalloc_tcache.h"
|
||||
#include "internal/jemalloc_arena.h"
|
||||
#include "internal/jemalloc_trace.h"
|
||||
|
||||
#ifndef JEMALLOC_ENABLE_INLINE
|
||||
void *imalloc(size_t size);
|
||||
@@ -0,0 +1,14 @@
|
||||
#ifndef MTRGRAPH_DEFS_H_
|
||||
#define MTRGRAPH_DEFS_H_
|
||||
|
||||
/* Defined if __attribute__((...)) syntax is supported. */
|
||||
#undef JEMALLOC_HAVE_ATTR
|
||||
#ifdef JEMALLOC_HAVE_ATTR
|
||||
# define JEMALLOC_ATTR(s) __attribute__((s))
|
||||
#else
|
||||
# define JEMALLOC_ATTR(s)
|
||||
#endif
|
||||
|
||||
#undef JEMALLOC_DEBUG
|
||||
|
||||
#endif /* MTRGRAPH_DEFS_H_ */
|
||||
@@ -0,0 +1,14 @@
|
||||
#ifndef MTRPLAY_DEFS_H_
|
||||
#define MTRPLAY_DEFS_H_
|
||||
|
||||
/* Defined if __attribute__((...)) syntax is supported. */
|
||||
#undef JEMALLOC_HAVE_ATTR
|
||||
#ifdef JEMALLOC_HAVE_ATTR
|
||||
# define JEMALLOC_ATTR(s) __attribute__((s))
|
||||
#else
|
||||
# define JEMALLOC_ATTR(s)
|
||||
#endif
|
||||
|
||||
#undef JEMALLOC_DEBUG
|
||||
|
||||
#endif /* MTRPLAY_DEFS_H_ */
|
||||
@@ -90,7 +90,7 @@
|
||||
*/
|
||||
|
||||
#define JEMALLOC_C_
|
||||
#include "jemalloc_internal.h"
|
||||
#include "internal/jemalloc_internal.h"
|
||||
|
||||
/******************************************************************************/
|
||||
/* Data. */
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "jemalloc_defs.h"
|
||||
#include "jemalloc_defs@install_suffix@.h"
|
||||
#ifndef JEMALLOC_P
|
||||
# define JEMALLOC_P(s) s
|
||||
#endif
|
||||
@@ -1,5 +1,5 @@
|
||||
#define JEMALLOC_ARENA_C_
|
||||
#include "jemalloc_internal.h"
|
||||
#include "internal/jemalloc_internal.h"
|
||||
|
||||
/******************************************************************************/
|
||||
/* Data. */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#define JEMALLOC_BASE_C_
|
||||
#include "jemalloc_internal.h"
|
||||
#include "internal/jemalloc_internal.h"
|
||||
|
||||
#ifdef JEMALLOC_STATS
|
||||
size_t base_mapped;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#define JEMALLOC_CHUNK_C_
|
||||
#include "jemalloc_internal.h"
|
||||
#include "internal/jemalloc_internal.h"
|
||||
|
||||
/******************************************************************************/
|
||||
/* Data. */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#define JEMALLOC_EXTENT_C_
|
||||
#include "jemalloc_internal.h"
|
||||
#include "internal/jemalloc_internal.h"
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#define JEMALLOC_HUGE_C_
|
||||
#include "jemalloc_internal.h"
|
||||
#include "internal/jemalloc_internal.h"
|
||||
|
||||
/******************************************************************************/
|
||||
/* Data. */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#define JEMALLOC_MUTEX_C_
|
||||
#include "jemalloc_internal.h"
|
||||
#include "internal/jemalloc_internal.h"
|
||||
|
||||
/******************************************************************************/
|
||||
/* Data. */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#define JEMALLOC_STATS_C_
|
||||
#include "jemalloc_internal.h"
|
||||
#include "internal/jemalloc_internal.h"
|
||||
|
||||
/******************************************************************************/
|
||||
/* Data. */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#define JEMALLOC_TCACHE_C_
|
||||
#include "jemalloc_internal.h"
|
||||
#include "internal/jemalloc_internal.h"
|
||||
#ifdef JEMALLOC_TCACHE
|
||||
/******************************************************************************/
|
||||
/* Data. */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#define JEMALLOC_TRACE_C_
|
||||
#include "jemalloc_internal.h"
|
||||
#include "internal/jemalloc_internal.h"
|
||||
#ifdef JEMALLOC_TRACE
|
||||
/******************************************************************************/
|
||||
/* Data. */
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
#include <gdfontl.h>
|
||||
#include <gdfontg.h>
|
||||
|
||||
#include "jemalloc.h"
|
||||
#include "internal/mtrgraph_defs.h"
|
||||
#ifndef JEMALLOC_DEBUG
|
||||
# define NDEBUG
|
||||
#endif
|
||||
#include <assert.h>
|
||||
#include "rb.h"
|
||||
#include "internal/rb.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
#include <sys/mman.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "jemalloc_defs.h"
|
||||
#include "internal/mtrplay_defs.h"
|
||||
#ifndef JEMALLOC_DEBUG
|
||||
# define NDEBUG
|
||||
#endif
|
||||
#include <assert.h>
|
||||
#include "rb.h"
|
||||
#include "internal/rb.h"
|
||||
|
||||
typedef struct record_s record_t;
|
||||
struct record_s {
|
||||
|
||||
Reference in New Issue
Block a user