From 5954e5695ba9b0b79ac61b018d23c21cca36bc94 Mon Sep 17 00:00:00 2001 From: "Jonathan G. Underwood" Date: Sun, 7 Feb 2021 13:40:36 +0000 Subject: [PATCH] getdns: disable static linking of getdns utilities This fixes issue #13361. Signed-off-by: Jonathan G. Underwood --- libs/getdns/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/getdns/Makefile b/libs/getdns/Makefile index 8eec7da1ca..6dc2fdece3 100644 --- a/libs/getdns/Makefile +++ b/libs/getdns/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=getdns PKG_VERSION:=1.6.0 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_LICENSE:=BSD-3-Clause PKG_LICENSE_FILES:=LICENSE @@ -66,6 +66,11 @@ CMAKE_OPTIONS += -DUSE_LIBIDN2=$(if $(CONFIG_GETDNS_ENABLE_IDN_LIBIDN2),ON,OFF) # 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/ -- 2.30.2