mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-14 00:53:49 +01:00
doc/guides: fix build in docker CFLAGS commands
This commit is contained in:
parent
2b8dd5e1f6
commit
cfb7af9361
@ -116,14 +116,13 @@ e.g: if wanting to override STRING_WITH_SPACES
|
|||||||
#### Normal Build
|
#### Normal Build
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
CFLAGS=-DSTRING_WITH_SPACES='\"with space\" make
|
CFLAGS='-DSTRING_WITH_SPACES="\"with space\""' make
|
||||||
```
|
```
|
||||||
|
|
||||||
#### In Docker
|
#### In Docker
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
DOCKER_ENVIRONMENT_CMDLINE='-e CFLAGS=-DSTRING_WITH_SPACES=\'\\\"with\ space\\\"\'' \
|
DOCKER_ENVIRONMENT_CMDLINE="-e CFLAGS='-DSTRING_WITH_SPACES=\\\"with\ space\\\"'" BUILD_IN_DOCKER=1 make
|
||||||
BUILD_IN_DOCKER=1 make
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, it is often easier to define the CFLAGS in the Makefile which gets
|
Alternatively, it is often easier to define the CFLAGS in the Makefile which gets
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user