README: Upgrade build instructions
parent
22009cc692
commit
95f5059200
30
README.md
30
README.md
|
@ -24,32 +24,6 @@ neat. Note: This is a beta release, so the interface is not yet stable.
|
|||
|
||||
To build just run:
|
||||
```
|
||||
make
|
||||
meson build
|
||||
ninja -C build
|
||||
```
|
||||
|
||||
### Installing
|
||||
```
|
||||
make install
|
||||
```
|
||||
|
||||
### Variables
|
||||
* `CFLAGS`: Flags passed to the compiler.
|
||||
* `LDFLAGS`: Flags passed to the linker.
|
||||
* `BUILD_DIR`: Destination directory for the build.
|
||||
* `PREFIX`: System prefix. Default: `/usr/local`.
|
||||
* `DESTDIR`: Destination directory for install. This is used by system
|
||||
package system such as dpkg, rpm and pacman.
|
||||
* `PKGCONFIG`: `pkg-config` executable path.
|
||||
* `STRIP`: `strip` executable path.
|
||||
* `DONT_STRIP`: Set this is the installed DSO is not to be stripped of its
|
||||
debugging symbols.
|
||||
|
||||
### Cross-compiling
|
||||
Generally, it should be enough to set `CC=<architecture-triplet>-gcc` and then
|
||||
run `make`, e.g.:
|
||||
```
|
||||
CC=arm-linux-gnueabihf-gcc make
|
||||
```
|
||||
If you have a `pkg-config` wrapper at `<triplet>-pkg-config` it will be run
|
||||
instead if `pkg-config`, but `pkg-config` can also be overridden by setting the
|
||||
`PKGCONFIG` environment variable prior to running `make`.
|
||||
|
|
Loading…
Reference in New Issue