backtrace: Add DbgHelp based Windows support for creating/printing backtraces
[strongswan.git] / src / libstrongswan / Makefile.am
index 180d27a..3560507 100644 (file)
@@ -114,6 +114,11 @@ if USE_WINDOWS
   libstrongswan_la_LIBADD += -lws2_32
 endif
 
+if USE_DBGHELP
+  libstrongswan_la_LIBADD += -ldbghelp
+  AM_CPPFLAGS += -DHAVE_DBGHELP
+endif
+
 if USE_LEAK_DETECTIVE
   AM_CPPFLAGS += -DLEAK_DETECTIVE
   libstrongswan_la_SOURCES += utils/leak_detective.c