From d67b69746dd217ac256dc74bcb4860793669f506 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Mon, 10 Feb 2020 16:21:52 +0100 Subject: [PATCH] Add missing CPPFLAGS and LDFLAGS Origin: Debian Last-Update: 2020-10-27 Gbp-Pq: Name 0006-add-CPPFLAGS-LDFLAGS.patch --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fd91c1d..9e64fd7 100644 --- a/Makefile +++ b/Makefile @@ -140,6 +140,7 @@ COMMON_FLAGS := -pipe ${WERROR} -Wall -Wstrict-prototypes -Wtype-limits \ # FIRMWARE_ARCH is defined if compiling for a firmware target # (coreboot or depthcharge). +CFLAGS += $(CPPFLAGS) ifeq (${FIRMWARE_ARCH},arm) CC ?= armv7a-cros-linux-gnueabihf-gcc CFLAGS ?= -march=armv5 -fno-common -ffixed-r8 -mfloat-abi=hard -marm @@ -1110,11 +1111,11 @@ ${BUILD}/%: ${BUILD}/%.o ${OBJS} ${LIBS} ${BUILD}/%.o: %.c @${PRINTF} " CC $(subst ${BUILD}/,,$@)\n" - ${Q}${CC} ${CFLAGS} ${INCLUDES} -c -o $@ $< + ${Q}${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} -c -o $@ $< ${BUILD}/%.o: ${BUILD}/%.c @${PRINTF} " CC $(subst ${BUILD}/,,$@)\n" - ${Q}${CC} ${CFLAGS} ${INCLUDES} -c -o $@ $< + ${Q}${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} -c -o $@ $< # ---------------------------------------------------------------------------- # Here are the special tweaks to the generic rules. -- 2.30.2