summaryrefslogtreecommitdiff
path: root/debian/patches/fix-rpath-in-makefile.patch
blob: 9ee83f4b3c40f316b3b93ccc966e0e85b2b6c12e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Lasse Flygenring-Harrsen <Lasse@Flygenring-Harrsen.com>
Date: Wed, 1 Jul 2020 13:52:24 +0200
Subject: fix-rpath-in-makefile

Avoid changing the runtime search path for the binary, which is not necessary since the binary is statically linked.
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 8ee1c22..9e024c2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,7 +11,7 @@ M_CPPFLAGS = -DSYSTEM_LIBINIPARSER=@SYSTEM_LIBINIPARSER@
 bin_PROGRAMS = cava
 cava_SOURCES = cava.c config.c input/common.c input/fifo.c input/shmem.c \
                output/terminal_noncurses.c output/raw.c
-cava_LDFLAGS = -L/usr/local/lib -Wl,-rpath /usr/local/lib
+cava_LDFLAGS = -L/usr/local/lib
 cava_CPPFLAGS = -DPACKAGE=\"$(PACKAGE)\" -DVERSION=\"$(VERSION)\" \
            -D_POSIX_SOURCE -D _POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE_EXTENDED
 cava_CFLAGS = -std=c99 -Wall -Werror -Wextra -Wno-unused-result -Wno-unknown-warning-option -Wno-maybe-uninitialized