-
- Downloads
Do not mandate input language
An application might want to use C11 features. The user would assume that setting `CFLAGS=-std=gnu11` in the Makefile would work. It does not since the board's Makefile.include shadows the `-std` flag. This patch removes the `-std=gnu99` from the various Makefile.includes, and sets the flag in the common Makefile.include of RIOT instead. If an `-std` flag was provided by an earlier Makefile (the application, the board, or the CPU [whilst only the former one should]), then no additional flag is set. It is first tested if the supplied compiler understands `-std=gnu99`, then `-std=c99`.
Showing
- Makefile.include 13 additions, 0 deletionsMakefile.include
- boards/chronos/Makefile.include 1 addition, 1 deletionboards/chronos/Makefile.include
- boards/mbed_lpc1768/Makefile.include 1 addition, 1 deletionboards/mbed_lpc1768/Makefile.include
- boards/msb-430-common/Makefile.include 1 addition, 1 deletionboards/msb-430-common/Makefile.include
- boards/msba2-common/Makefile.include 1 addition, 1 deletionboards/msba2-common/Makefile.include
- boards/native/Makefile.include 1 addition, 1 deletionboards/native/Makefile.include
- boards/redbee-econotag/Makefile.include 1 addition, 1 deletionboards/redbee-econotag/Makefile.include
- boards/telosb/Makefile.include 1 addition, 1 deletionboards/telosb/Makefile.include
- boards/wsn430-common/Makefile.include 1 addition, 1 deletionboards/wsn430-common/Makefile.include
Please register or sign in to comment