diff options
author | Alex James <theracermaster@gmail.com> | 2021-12-19 15:52:49 -0600 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-01-04 11:51:06 +0000 |
commit | 2219d89d9db60aaf64b6251a09a813b75c67d716 (patch) | |
tree | a48190e602cd9a3a2e84cebc8671c5d19030c7d7 /util | |
parent | 8a44eb9a5b2c6183e5e7477eea40e7e6c2b229fa (diff) |
cbfstool: Avoid defining _XOPEN_SOURCE
This restricts availability of non-standard functions (such as memmem)
on FreeBSD and macOS. It also isn't necessary on glibc.
Change-Id: Iaee1ce7304c89f128a35a385032fce16a2772b13
Signed-off-by: Alex James <theracermaster@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60232
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/cbfstool/Makefile.inc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/util/cbfstool/Makefile.inc b/util/cbfstool/Makefile.inc index 4651f512a3..3787a56578 100644 --- a/util/cbfstool/Makefile.inc +++ b/util/cbfstool/Makefile.inc @@ -134,10 +134,6 @@ TOOLCPPFLAGS += -I$(top)/src/vendorcode/intel/edk2/uefi_2.4/MdePkg/Include TOOLLDFLAGS ?= HOSTCFLAGS += -fms-extensions -ifneq ($(shell uname -o 2>/dev/null), FreeBSD) -TOOLCPPFLAGS += -D_XOPEN_SOURCE=700 # strdup() from string.h -endif - ifeq ($(shell uname -s | cut -c-7 2>/dev/null), MINGW32) TOOLCFLAGS += -mno-ms-bitfields endif |