File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 30
30
{ "name": "gcc-no-math",
31
31
" flags " :
32
32
' { "QMAKESPEC": "linux-gcc-no-math",
33
- "EVAL": "export CXX=false && touch src/ math.h src/ float.h",
33
+ "EVAL": "export CXX=false && touch math.h float.h",
34
34
"CFLAGS": "-ffreestanding -DCBOR_NO_FLOATING_POINT -Os",
35
35
"LDFLAGS": "-Wl,--no-undefined",
36
36
"LDLIBS": ""
Original file line number Diff line number Diff line change @@ -15,11 +15,12 @@ PROGRAM-freestanding += int main() {}
15
15
CCFLAGS-freestanding = $(CFLAGS)
16
16
17
17
PROGRAM-cjson = \#include <stdlib.h>\n
18
+ PROGRAM-cjson += \#include <math.h>\n
18
19
PROGRAM-cjson += \#include <cjson/cJSON.h>\n
19
- PROGRAM-cjson += int main() { return cJSON_False; }
20
- CCFLAGS-cjson = -I$(dir $(MAKEFILE))src
20
+ PROGRAM-cjson += int main() { double d = NAN; return cJSON_False; }
21
+ CCFLAGS-cjson = -I. -I $(dir $(MAKEFILE))src
21
22
PROGRAM-system-cjson = $(PROGRAM-cjson)
22
- CCFLAGS-system-cjson = -lcjson
23
+ CCFLAGS-system-cjson = -I. - lcjson
23
24
24
25
sink:
25
26
@echo >&2 Please run from the top-level Makefile.
You can’t perform that action at this time.
0 commit comments