From 277bd447ad955b546ab248aa170004d1e3e9cd70 Mon Sep 17 00:00:00 2001 From: Guo Xiao Date: Wed, 22 Nov 2017 11:19:03 -0800 Subject: [PATCH] Link to unwind when using symbolizer Summary: Fix #673 Closes https://github.com/facebook/folly/pull/715 Reviewed By: meyering Differential Revision: D6394731 Pulled By: yfeldblum fbshipit-source-id: fb92828d0c633278601125dbc64cadf0cdbaa7fe --- folly/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/folly/Makefile.am b/folly/Makefile.am index c046a8df..5c60a728 100644 --- a/folly/Makefile.am +++ b/folly/Makefile.am @@ -734,6 +734,10 @@ libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) libfolly_la_LIBADD = libfollybase.la libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl +if USE_SYMBOLIZER +libfolly_la_LDFLAGS += -lunwind +endif + FingerprintTables.cpp: generate_fingerprint_tables ./generate_fingerprint_tables CLEANFILES += FingerprintTables.cpp -- 2.34.1