MFH: r527391
Fix build on non-x86 and nun-aarch6 PR: 244073 Submitted by: pkubaj Sponsored by: Netzkommune GmbH Approved by: ports-secteam (joneum)
This commit is contained in:
parent
d9b554e4ec
commit
4f0db06072
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q1/; revision=527392
@ -32,10 +32,16 @@ LIB_DEPENDS+= libcurl.so:ftp/curl \
|
||||
liblz4.so:archivers/liblz4 \
|
||||
libzstd.so:archivers/zstd \
|
||||
libprotobuf.so:devel/protobuf \
|
||||
libunwind.so:devel/libunwind
|
||||
${LIB_DEPENDS_${ARCH}}
|
||||
LIB_DEPENDS_aarch64= libunwind.so:devel/libunwind
|
||||
LIB_DEPENDS_amd64= libunwind.so:devel/libunwind
|
||||
LIB_DEPENDS_i386= libunwind.so:devel/libunwind
|
||||
|
||||
BUILD_DEPENDS= liblz4>0:archivers/liblz4 \
|
||||
libunwind>0:devel/libunwind
|
||||
${BUILD_DEPENDS_${ARCH}}
|
||||
BUILD_DEPENDS_aarch64= libunwind>0:devel/libunwind
|
||||
BUILD_DEPENDS_amd64= libunwind>0:devel/libunwind
|
||||
BUILD_DEPENDS_i386= libunwind>0:devel/libunwind
|
||||
|
||||
CMAKE_BUILD_TYPE= Release
|
||||
CFLAGS+= -fPIC
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- include/my_stacktrace.h.orig 2020-01-23 19:43:07.769584000 +0100
|
||||
+++ include/my_stacktrace.h 2020-01-23 19:43:48.684042000 +0100
|
||||
@@ -43,7 +43,7 @@
|
||||
HAVE_BACKTRACE - Linux, FreeBSD, OSX, Solaris
|
||||
_WIN32 - Windows
|
||||
*/
|
||||
-#if defined(HAVE_BACKTRACE) || defined(_WIN32)
|
||||
+#if (defined(HAVE_BACKTRACE) || defined(_WIN32)) && (defined(__aarch64__) || defined(__amd64__) || defined(__i386__))
|
||||
#define HAVE_STACKTRACE 1
|
||||
void my_init_stacktrace();
|
||||
void my_print_stacktrace(uchar *stack_bottom, ulong thread_stack);
|
Loading…
Reference in New Issue
Block a user