From: Ole Streicher <olebole@debian.org>
Date: Tue, 3 Jul 2018 21:19:10 +0200
Subject: Support kfreeBSD

---
 unix/as.freebsd64/zsvjmp.s | 2 +-
 unix/hlib/irafarch.sh      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/unix/as.freebsd64/zsvjmp.s b/unix/as.freebsd64/zsvjmp.s
index 3316be1..3620b65 100644
--- a/unix/as.freebsd64/zsvjmp.s
+++ b/unix/as.freebsd64/zsvjmp.s
@@ -40,4 +40,4 @@ zsvjmp_:
 	movl    $0, (%rsi)      # zero the value of status
 	addq    $8, %rdi        # change point to &jmpbuf[1]
 	movl    $0, %esi        # change arg2 to zero
-	jmp     sigsetjmp       # let sigsetjmp do the rest
+	jmp	__sigsetjmp@PLT	# let sigsetjmp do the rest
diff --git a/unix/hlib/irafarch.sh b/unix/hlib/irafarch.sh
index 2d00508..eadb08d 100755
--- a/unix/hlib/irafarch.sh
+++ b/unix/hlib/irafarch.sh
@@ -101,7 +101,7 @@ else
          fi
          ;;
 
-     "freebsd")
+     "freebsd"|"gnu/kfreebsd")
 	 if [ "$nbits" = 64 ] ; then
              mach="freebsd64"
          else
