summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex James <theracermaster@gmail.com>2021-12-19 15:52:49 -0600
committerFelix Held <felix-coreboot@felixheld.de>2022-01-04 11:51:06 +0000
commit2219d89d9db60aaf64b6251a09a813b75c67d716 (patch)
treea48190e602cd9a3a2e84cebc8671c5d19030c7d7
parent8a44eb9a5b2c6183e5e7477eea40e7e6c2b229fa (diff)
downloadcoreboot-2219d89d9db60aaf64b6251a09a813b75c67d716.tar.gz
coreboot-2219d89d9db60aaf64b6251a09a813b75c67d716.tar.bz2
coreboot-2219d89d9db60aaf64b6251a09a813b75c67d716.zip
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>
-rw-r--r--util/cbfstool/Makefile.inc4
1 files changed, 0 insertions, 4 deletions
diff --git a/util/cbfstool/Makefile.inc b/util/cbfstool/Makefile.inc
index 4651f512a376..3787a5657809 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