Skip to content

Commit cfb7af9

Browse files
committed
doc/guides: fix build in docker CFLAGS commands
1 parent 2b8dd5e commit cfb7af9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/guides/build-system/build-in-docker.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,13 @@ e.g: if wanting to override STRING_WITH_SPACES
116116
#### Normal Build
117117

118118
```shell
119-
CFLAGS=-DSTRING_WITH_SPACES='\"with space\" make
119+
CFLAGS='-DSTRING_WITH_SPACES="\"with space\""' make
120120
```
121121

122122
#### In Docker
123123

124124
```shell
125-
DOCKER_ENVIRONMENT_CMDLINE='-e CFLAGS=-DSTRING_WITH_SPACES=\'\\\"with\ space\\\"\'' \
126-
BUILD_IN_DOCKER=1 make
125+
DOCKER_ENVIRONMENT_CMDLINE="-e CFLAGS='-DSTRING_WITH_SPACES=\\\"with\ space\\\"'" BUILD_IN_DOCKER=1 make
127126
```
128127

129128
Alternatively, it is often easier to define the CFLAGS in the Makefile which gets

0 commit comments

Comments
 (0)