Windows: Also use -lshlwapi for jq(1)
authorNicolas Williams <nico@cryptonector.com>
Sat, 25 Feb 2017 20:15:18 +0000 (14:15 -0600)
committerNicolas Williams <nico@cryptonector.com>
Sat, 25 Feb 2017 20:49:20 +0000 (14:49 -0600)
Makefile.am

index 3c3095d11c09b3de46fb8019aa9bb3e153e35a8d..73b02ef3f7c394454ed2ad362ed3b7e39cf0fa5d 100644 (file)
@@ -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