--- QuantLib-1.6.2/ql/Makefile.am.orig	2015-09-22 13:03:34.307586400 +0300
+++ QuantLib-1.6.2/ql/Makefile.am	2015-09-22 13:03:46.796337400 +0300
@@ -79,7 +79,7 @@
 	timegrid.cpp
 
 lib_LTLIBRARIES = libQuantLib.la
-libQuantLib_la_LDFLAGS = -version-info 0:0:0
+libQuantLib_la_LDFLAGS = -no-undefined -version-info 0:0:0
 
 libQuantLib_la_LIBADD = \
     cashflows/libCashFlows.la \
