mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-13 16:43:52 +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
|
||||
|
||||
```shell
|
||||
CFLAGS=-DSTRING_WITH_SPACES='\"with space\" make
|
||||
CFLAGS='-DSTRING_WITH_SPACES="\"with space\""' make
|
||||
```
|
||||
|
||||
#### In Docker
|
||||
|
||||
```shell
|
||||
DOCKER_ENVIRONMENT_CMDLINE='-e CFLAGS=-DSTRING_WITH_SPACES=\'\\\"with\ space\\\"\'' \
|
||||
BUILD_IN_DOCKER=1 make
|
||||
DOCKER_ENVIRONMENT_CMDLINE="-e CFLAGS='-DSTRING_WITH_SPACES=\\\"with\ space\\\"'" BUILD_IN_DOCKER=1 make
|
||||
```
|
||||
|
||||
Alternatively, it is often easier to define the CFLAGS in the Makefile which gets
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user