From 344b9cbd0b92cacc8d4dcaf28a9d9e59fa3192da Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Mon, 13 Apr 2015 19:55:25 -0400 Subject: Make lib/ use the right CFLAGS. Signed-off-by: Peter Jones --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 332a29bd..532bcf3f 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ SUBDIRS = Cryptlib lib LIB_PATH = /usr/lib64 EFI_INCLUDE := /usr/include/efi -EFI_INCLUDES = -nostdinc -ICryptlib -ICryptlib/Include -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol -Iinclude +EFI_INCLUDES = -nostdinc -ICryptlib -ICryptlib/Include -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol -I$(shell pwd)/include EFI_PATH := /usr/lib64/gnuefi LIB_GCC = $(shell $(CC) -print-libgcc-file-name) @@ -115,7 +115,7 @@ Cryptlib/OpenSSL/libopenssl.a: $(MAKE) -C Cryptlib/OpenSSL lib/lib.a: - $(MAKE) -C lib + $(MAKE) CFLAGS="$(CFLAGS)" -C lib ifeq ($(ARCH),aarch64) FORMAT := -O binary -- cgit v1.2.3