Skip to content

Commit

Permalink
build: fix insecure RUNPATH (#3212)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
orbea authored Feb 1, 2025
1 parent 0d1e371 commit 07af9c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 07af9c1

Please sign in to comment.