diff options
author | Edward O'Callaghan <quasisec@google.com> | 2020-11-24 23:29:29 +1100 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2021-01-13 02:20:46 +0000 |
commit | 5e5c3f15efe262ff23642dd543faf6a9dbb3bbdb (patch) | |
tree | e92324eeecd6ff98db64c57fdf410d7b12b4b454 /Makefile | |
parent | f384161b5a122411bd22cc90a19f8a1a08de73e7 (diff) | |
download | flashrom-5e5c3f15efe262ff23642dd543faf6a9dbb3bbdb.tar.gz flashrom-5e5c3f15efe262ff23642dd543faf6a9dbb3bbdb.tar.bz2 flashrom-5e5c3f15efe262ff23642dd543faf6a9dbb3bbdb.zip |
Makefile: Explicitly set '-std=c99'
This matches the build flags that are correctly explicitly defined in
meson.build where-as the Makefile is randomly picking up whatever the
system toolchain happens to default to.
Fix dmi.c while we are here to avoid a re-define of _GNU_SOURCE.
BUG=none
TEST=`make` with both gcc and clang.
Change-Id: I4f973927fc018510a3beaa6c4fa2f356c77c7a6e
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/47908
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Sam McNally <sammc@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,7 @@ INSTALL = install DIFF = diff PREFIX ?= /usr/local MANDIR ?= $(PREFIX)/share/man -CFLAGS ?= -Os -Wall -Wextra -Wno-unused-parameter -Wshadow -Wmissing-prototypes -Wwrite-strings +CFLAGS ?= -std=c99 -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -Os -Wall -Wextra -Wno-unused-parameter -Wshadow -Wmissing-prototypes -Wwrite-strings EXPORTDIR ?= . RANLIB ?= ranlib PKG_CONFIG ?= pkg-config |