Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/civetweb: fix underlinked shared library
@ 2026-08-30 18:07 Alexander Sverdlin
  0 siblings, 0 replies; only message in thread
From: Alexander Sverdlin @ 2026-08-30 18:07 UTC (permalink / raw)
  To: buildroot; +Cc: Alexander Sverdlin

The install steps re-link libcivetweb.so but do not pass LIBS, so the link
falls back to the upstream Makefile defaults and loses the OpenSSL flags
added by the package. The correctly linked library produced by the build
step is then overwritten by an underlinked one, leaving SSL_CTX_free,
EVP_Digest and friends undefined and breaking any package linking against
-lcivetweb.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
---
 package/civetweb/civetweb.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/civetweb/civetweb.mk b/package/civetweb/civetweb.mk
index af221e9133..4fdd94ecc7 100644
--- a/package/civetweb/civetweb.mk
+++ b/package/civetweb/civetweb.mk
@@ -93,7 +93,7 @@ define CIVETWEB_INSTALL_STAGING_CMDS
 		PREFIX="$(STAGING_DIR)/usr" \
 		$(CIVETWEB_INSTALL_OPTS) \
 		$(CIVETWEB_CONF_OPTS) \
-		COPT='$(CIVETWEB_COPT)'
+		COPT='$(CIVETWEB_COPT)' LIBS="$(CIVETWEB_LIBS)"
 endef
 
 define CIVETWEB_INSTALL_TARGET_CMDS
@@ -102,7 +102,7 @@ define CIVETWEB_INSTALL_TARGET_CMDS
 		PREFIX="$(TARGET_DIR)/usr" \
 		$(CIVETWEB_INSTALL_OPTS) \
 		$(CIVETWEB_CONF_OPTS) \
-		COPT='$(CIVETWEB_COPT)'
+		COPT='$(CIVETWEB_COPT)' LIBS="$(CIVETWEB_LIBS)"
 endef
 
 $(eval $(generic-package))
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-30 18:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-30 18:07 [Buildroot] [PATCH] package/civetweb: fix underlinked shared library Alexander Sverdlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox