build: use CPPFLAGS instead of CFLAGS for FREESTANDING/EXPORT_UNPREFIXED

arm_linker_fix
Ariadne Conill 2022-02-13 06:25:47 +00:00
parent 2c0c0e5d29
commit 9403b481bc
1 changed files with 2 additions and 2 deletions

View File

@ -31,12 +31,12 @@ endif
FREESTANDING := no FREESTANDING := no
ifeq ($(FREESTANDING),yes) ifeq ($(FREESTANDING),yes)
CFLAGS += -DFREESTANDING CPPFLAGS += -DFREESTANDING
EXPORT_UNPREFIXED = no EXPORT_UNPREFIXED = no
endif endif
ifeq ($(EXPORT_UNPREFIXED),yes) ifeq ($(EXPORT_UNPREFIXED),yes)
CFLAGS += -DEXPORT_UNPREFIXED CPPFLAGS += -DEXPORT_UNPREFIXED
endif endif
LIBUCONTEXT_C_SRC = $(wildcard arch/${ARCH}/*.c) LIBUCONTEXT_C_SRC = $(wildcard arch/${ARCH}/*.c)