From 07af9c11b720feb2e60bbd2a07779bc8e6f12d42 Mon Sep 17 00:00:00 2001 From: orbea Date: Fri, 31 Jan 2025 22:07:54 -0800 Subject: [PATCH] build: fix insecure RUNPATH (#3212) The -static-libtool-libs flag causes GNU libtool to add a rpath to the .libs build directory, which is intended for internal use by the libtool implementation and is not installed in the resulting package causing Gentoo to print a QA notice. See Gentoo issue: https://bugs.gentoo.org/945698. --- Makefile.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index f9520e8f..40ca3bd7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -115,11 +115,10 @@ CLEANFILES = src/builtin.inc bin_PROGRAMS = jq jq_SOURCES = src/main.c -jq_LDFLAGS = -static-libtool-libs jq_LDADD = libjq.la -lm if ENABLE_ALL_STATIC -jq_LDFLAGS += -all-static +jq_LDFLAGS = -all-static endif ### Tests (make check)