--- libr/util/Makefile.orig	2019-08-14 18:53:09 UTC
+++ libr/util/Makefile
@@ -51,7 +51,7 @@ endif
 endif
 
 # FreeBSD 10.0 ships with backtrace(3) in -lexecinfo
-ifeq (${BUILD_OS},freebsd)
+ifeq (${HOST_OS},freebsd)
 ifneq ($(shell expr "`uname -r`" : '[0-9]\.'), 2)
   LDFLAGS+=-lexecinfo
 endif
