diff --git a/Makefile.am b/Makefile.am
index 5f1d0f8..b6a8595 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -84,6 +84,7 @@ libbacktrace_la_LIBADD = \
 
 libbacktrace_la_DEPENDENCIES = $(libbacktrace_la_LIBADD)
 
+libbacktrace_la_LDFLAGS = -no-undefined
 # Testsuite.
 
 # Add a test to this variable if you want it to be built as a program,
