summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 3c3095d1..73b02ef3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -109,6 +109,10 @@ jq_SOURCES = src/main.c src/version.h
jq_LDFLAGS = -static-libtool-libs
jq_LDADD = libjq.la -lm
+if WIN32
+jq_LDADD += -lshlwapi
+endif
+
if ENABLE_ALL_STATIC
jq_LDFLAGS += -all-static
endif