--- jq-1.5/Makefile.am.orig	2016-02-29 11:00:10.368042000 +0300
+++ jq-1.5/Makefile.am	2016-02-29 11:00:19.805042000 +0300
@@ -43,7 +43,7 @@
 lib_LTLIBRARIES = libjq.la
 libjq_la_SOURCES = ${LIBJQ_SRC}
 libjq_la_LIBADD = -lm
-libjq_la_LDFLAGS = $(onig_LDFLAGS) -export-symbols-regex '^j[qv]_' -version-info 1:4:0
+libjq_la_LDFLAGS = $(onig_LDFLAGS) -export-symbols-regex '^j[qv]_' -version-info 1:4:0 -no-undefined
 
 if WIN32
 libjq_la_LIBADD += -lshlwapi
