Skip to content

Commit 07af9c1

Browse files
authored
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.
1 parent 0d1e371 commit 07af9c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile.am

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,10 @@ CLEANFILES = src/builtin.inc
115115

116116
bin_PROGRAMS = jq
117117
jq_SOURCES = src/main.c
118-
jq_LDFLAGS = -static-libtool-libs
119118
jq_LDADD = libjq.la -lm
120119

121120
if ENABLE_ALL_STATIC
122-
jq_LDFLAGS += -all-static
121+
jq_LDFLAGS = -all-static
123122
endif
124123

125124
### Tests (make check)

0 commit comments

Comments
 (0)