Skip to content

Commit 563d01c

Browse files
committed
docs: Update README for cross build
Signed-off-by: Akira Moroo <[email protected]>
1 parent 58529d3 commit 563d01c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,23 @@ svc-hook supports ARM64 Linux and FreeBSD.
1919
## Build
2020

2121
svc-hook has no external dependencies.
22-
To build `libsvchook.so`, run the following command in the root directory:
22+
To build `libsvchook.so`, run the following command in the root directory on an
23+
ARM64 system:
2324

2425
```shell
2526
make
2627
```
2728

29+
If you are building on x86_64 or another host architecture, provide an ARM64
30+
cross compiler via the `CC` variable:
31+
32+
```shell
33+
make CC=aarch64-linux-gnu-gcc
34+
35+
# or with clang
36+
make CC=aarch64-linux-gnu-clang
37+
```
38+
2839
To build a simple hook application `libsvchook_basic.so`, use:
2940

3041
```shell

0 commit comments

Comments
 (0)