Add the --with-static-libunwind configure option.
This commit is contained in:
parent
a40bc7afe8
commit
ca6bd4f1c8
@ -59,6 +59,10 @@ any of the following arguments (not a definitive list) to 'configure':
|
|||||||
variety of system configurations than the default backtracing code, which is
|
variety of system configurations than the default backtracing code, which is
|
||||||
based on libgcc functionality or gcc intrinsics.
|
based on libgcc functionality or gcc intrinsics.
|
||||||
|
|
||||||
|
--with-static-libunwind=<libunwind.a>
|
||||||
|
Statically link against the specified libunwind.a rather than dynamically
|
||||||
|
linking with -lunwind.
|
||||||
|
|
||||||
--disable-tiny
|
--disable-tiny
|
||||||
Disable tiny (sub-quantum-sized) object support. Technically it is not
|
Disable tiny (sub-quantum-sized) object support. Technically it is not
|
||||||
legal for a malloc implementation to allocate objects with less than
|
legal for a malloc implementation to allocate objects with less than
|
||||||
|
@ -366,6 +366,19 @@ fi
|
|||||||
],
|
],
|
||||||
[enable_prof_libunwind="0"]
|
[enable_prof_libunwind="0"]
|
||||||
)
|
)
|
||||||
|
AC_ARG_WITH([static_libunwind],
|
||||||
|
[AS_HELP_STRING([--with-static-libunwind=<libunwind.a>],
|
||||||
|
[Path to static libunwind library; use rather than dynamically linking])],
|
||||||
|
if test "x$with_static_libunwind" = "xno" ; then
|
||||||
|
LUNWIND="-lunwind"
|
||||||
|
else
|
||||||
|
if test ! -f "$with_static_libunwind" ; then
|
||||||
|
AC_MSG_ERROR([Static libunwind not found: $with_static_libunwind])
|
||||||
|
fi
|
||||||
|
LUNWIND="$with_static_libunwind"
|
||||||
|
fi,
|
||||||
|
LUNWIND="-lunwind"
|
||||||
|
)
|
||||||
dnl Finish prof-related definitions below, once TLS configuration is done.
|
dnl Finish prof-related definitions below, once TLS configuration is done.
|
||||||
|
|
||||||
dnl Enable tiny allocations by default.
|
dnl Enable tiny allocations by default.
|
||||||
@ -665,7 +678,7 @@ if test "x$enable_prof" = "x1" ; then
|
|||||||
AC_DEFINE([JEMALLOC_PROF], [ ])
|
AC_DEFINE([JEMALLOC_PROF], [ ])
|
||||||
if test "x$enable_prof_libunwind" = "x1" ; then
|
if test "x$enable_prof_libunwind" = "x1" ; then
|
||||||
AC_CHECK_HEADERS([libunwind.h], , [enable_prof_libunwind="0"])
|
AC_CHECK_HEADERS([libunwind.h], , [enable_prof_libunwind="0"])
|
||||||
AC_CHECK_LIB([unwind], [backtrace], [LIBS="$LIBS -lunwind"],
|
AC_CHECK_LIB([unwind], [backtrace], [LIBS="$LIBS $LUNWIND"],
|
||||||
[enable_prof_libunwind="0"])
|
[enable_prof_libunwind="0"])
|
||||||
if test "x${enable_prof_libunwind}" = "x1" ; then
|
if test "x${enable_prof_libunwind}" = "x1" ; then
|
||||||
AC_DEFINE([JEMALLOC_PROF_LIBUNWIND], [ ])
|
AC_DEFINE([JEMALLOC_PROF_LIBUNWIND], [ ])
|
||||||
|
Loading…
Reference in New Issue
Block a user