svn commit: r556575 - head/graphics/gmt/files

Mikael Urankar mikael at FreeBSD.org
Sun Nov 29 15:40:36 UTC 2020


Author: mikael
Date: Sun Nov 29 15:40:36 2020
New Revision: 556575
URL: https://svnweb.freebsd.org/changeset/ports/556575

Log:
  graphics/gmt: Fix build on aarch64
  
  Approved by:	portmgr (tier-2 blanket)

Added:
  head/graphics/gmt/files/patch-src_gmt__common__sighandler.c   (contents, props changed)

Added: head/graphics/gmt/files/patch-src_gmt__common__sighandler.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/gmt/files/patch-src_gmt__common__sighandler.c	Sun Nov 29 15:40:36 2020	(r556575)
@@ -0,0 +1,11 @@
+--- src/gmt_common_sighandler.c.orig	2020-11-28 18:05:26 UTC
++++ src/gmt_common_sighandler.c
+@@ -69,6 +69,8 @@ void backtrace_symbols_fd(void *const *buffer, int siz
+ #  define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_rip)
+ # elif defined( __arm__)
+ #  define UC_IP(uc) ((void *) (uc)->uc_mcontext.arm_pc)
++# elif defined( __aarch64__)
++#  define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_gpregs.gp_elr)
+ # elif defined(__ppc__)
+ #  define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_srr0)
+ # else


More information about the svn-ports-all mailing list