From 324c84aebd4f6f483e64627a165612aa14cf364e Mon Sep 17 00:00:00 2001 From: thorkill Date: Thu, 10 Dec 2015 23:33:15 +0100 Subject: [PATCH] On FreeBSD backtrace() needs -lexecinfo --- src/Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index c1b0a84a..a21388ed 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -216,4 +216,13 @@ if OPENBSD AM_CFLAGS += -fstack-protector-all endif +if BSD +tincd_LDADD += -lexecinfo +tinc_LDADD += -lexecinfo +sptps_test_LDADD += -lexecinfo +sptps_keypair_LDADD += -lexecinfo +sptps_speed_LDADD += -lexecinfo +endif + + #-fsanitize=address