blob: 32362e941cdbdfc65f26109c8e28359421299832 (
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
27
28
29
30
31
32
33
34
35
|
From 9da6b9612ef0ed2481c762f0c78af1204e407ccc Mon Sep 17 00:00:00 2001
From: orbea <orbea@riseup.net>
Date: Mon, 16 Dec 2019 05:17:03 -0800
Subject: [PATCH] pkgconfig: Don't hardcode libdir.
---
lib/Makefile | 1 +
lib/libzstd.pc.in | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/Makefile b/lib/Makefile
index fd1710cf1..cb8351e13 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -244,6 +244,7 @@ libzstd.pc:
libzstd.pc: libzstd.pc.in
@echo creating pkgconfig
@sed -e 's|@PREFIX@|$(PREFIX)|' \
+ -e 's|@LIBDIR@|$(LIBDIR)|' \
-e 's|@VERSION@|$(VERSION)|' \
$< >$@
diff --git a/lib/libzstd.pc.in b/lib/libzstd.pc.in
index e7880be47..9309426ec 100644
--- a/lib/libzstd.pc.in
+++ b/lib/libzstd.pc.in
@@ -5,7 +5,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
includedir=${prefix}/include
-libdir=${exec_prefix}/lib
+libdir=@LIBDIR@
Name: zstd
Description: fast lossless compression algorithm library
|