aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/elfutils/rpath-link.diff
blob: 9db4533fc6182c276cb829d9973437bfecf7f80d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/debuginfod/Makefile.am b/debuginfod/Makefile.am
index db27b2a..b90ed23 100644
--- a/debuginfod/Makefile.am
+++ b/debuginfod/Makefile.am
@@ -58,7 +58,7 @@ endif
 libebl = ../libebl/libebl.a
 libeu = ../lib/libeu.a
 
-AM_LDFLAGS = -Wl,-rpath-link,../libelf:../libdw:.
+AM_LDFLAGS = -Wl,-rpath-link,../libelf:../libdw:.:$(libdir)
 
 bin_PROGRAMS =
 if DEBUGINFOD
diff --git a/src/Makefile.am b/src/Makefile.am
index 8e35512..33f7f4b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -26,7 +26,7 @@ AM_CPPFLAGS += -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
 	    -I$(srcdir)/../libdwfl -I$(srcdir)/../libdwfl_stacktrace \
 	    -I$(srcdir)/../libasm -I../debuginfod
 
-AM_LDFLAGS = -Wl,-rpath-link,../libelf:../libdw $(STACK_USAGE_NO_ERROR)
+AM_LDFLAGS = -Wl,-rpath-link,../libelf:../libdw:$(libdir) $(STACK_USAGE_NO_ERROR)
 
 bin_PROGRAMS = readelf nm size strip elflint findtextrel addr2line \
 	       elfcmp objdump ranlib strings ar unstrip stack elfcompress \