This fixes issue #13361.
Signed-off-by: Jonathan G. Underwood <jonathan.underwood@gmail.com>
PKG_NAME:=getdns
PKG_VERSION:=1.6.0
-PKG_RELEASE:=4
+PKG_RELEASE:=5
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE
# the test for libbsd.
CMAKE_OPTIONS += -DBSD_LIBRARY=OFF
+# Disable static linking to ensure that utility programs such as getdns_query
+# don't end up as large statically linked binaries.
+CMAKE_OPTIONS += -DENABLE_STATIC=OFF
+CMAKE_OPTIONS += -DENABLE_SHARED=ON # This is the default
+
define Package/getdns/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgetdns.so.* $(1)/usr/lib/