You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/README.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,29 @@ in order to make it easier to select or exclude features.
7
7
8
8
#### Building
9
9
10
-
`Makefile` script is provided, supporting [Makefile conventions](https://www.gnu.org/prep/standards/html_node/Makefile-Conventions.html#Makefile-Conventions),
10
+
A `Makefile` script is provided, supporting [Makefile conventions](https://www.gnu.org/prep/standards/html_node/Makefile-Conventions.html#Makefile-Conventions),
11
11
including commands variables, staged install, directory variables and standard targets.
12
12
-`make` : generates both static and dynamic libraries
13
-
-`make install` : install librariesand headers in target system directories
13
+
-`make install` : install libraries, headers and pkg-config in local system directories
14
14
15
-
`libzstd` default scope is pretty large, including compression, decompression, dictionary builder,
16
-
and support for decoding legacy formats >= v0.5.0.
15
+
`libzstd` default scope is extensive, including compression, decompression, dictionary builder,
16
+
and support for decoding legacy formats >= v0.5.0 by default.
17
17
The scope can be reduced on demand (see paragraph _modular build_).
18
18
19
+
#### Multiarch Support
20
+
21
+
For multiarch systems (like Debian/Ubuntu), libraries should be installed to architecture-specific directories.
22
+
When creating packages for such systems, use the `LIBDIR` variable to specify the correct multiarch path:
23
+
24
+
```bash
25
+
# For x86_64 systems on Ubuntu/Debian:
26
+
make install PREFIX=/usr LIBDIR=/usr/lib/x86_64-linux-gnu
27
+
28
+
# For ARM64 systems on Ubuntu/Debian:
29
+
make install PREFIX=/usr LIBDIR=/usr/lib/aarch64-linux-gnu
30
+
```
31
+
32
+
This will not only install the files in the correct directories, but also generate the correct paths for `pkg-config`.
0 commit comments