diff options
author | Eddy Jansson <eddy@klopper.net> | 2021-07-24 13:43:35 +0200 |
---|---|---|
committer | Eddy Jansson <eddy@klopper.net> | 2021-07-24 16:05:15 +0200 |
commit | c1f514f3dbc22e56b2d6821f461aa058bd3104c3 (patch) | |
tree | 0f84df5b5ac8a865562719d5e41bda97ba3c5bbd /lib | |
parent | c240126068b780d927c126bb6a16cdeb92c35d77 (diff) | |
download | lz4-c1f514f3dbc22e56b2d6821f461aa058bd3104c3.tar.gz |
Expand use of pkg-config variables.
Change pkg-config generation such that the path variables,
not their values, are used in the definitions of Libs and Cflags,
and that $prefix is substituted into libdir and includedir iff
they start with its value.
This makes it easier to modify the already installed file if necessary.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile | 1 | ||||
-rw-r--r-- | lib/liblz4.pc.in | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/Makefile b/lib/Makefile index 344120a5..45f33e48 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -175,6 +175,7 @@ liblz4.pc: liblz4.pc.in Makefile -e 's|@LIBDIR@|$(libdir)|' \ -e 's|@INCLUDEDIR@|$(includedir)|' \ -e 's|@VERSION@|$(LIBVER)|' \ + -e 's|=${prefix}/|=$${prefix}/|' \ $< >$@ install: lib liblz4.pc diff --git a/lib/liblz4.pc.in b/lib/liblz4.pc.in index 211477fa..ed52214f 100644 --- a/lib/liblz4.pc.in +++ b/lib/liblz4.pc.in @@ -10,5 +10,5 @@ Name: lz4 Description: extremely fast lossless compression algorithm library URL: http://www.lz4.org/ Version: @VERSION@ -Libs: -L@LIBDIR@ -llz4 -Cflags: -I@INCLUDEDIR@ +Libs: -L${libdir} -llz4 +Cflags: -I${includedir} |