summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2015-04-13 19:55:25 -0400
committerPeter Jones <pjones@redhat.com>2015-04-13 19:55:25 -0400
commit344b9cbd0b92cacc8d4dcaf28a9d9e59fa3192da (patch)
tree1404b0fdaa7dedd59041bbd9f673e4a6e6b6e2fa /Makefile
parent1f23ecc3000b14c02cbaf47a819ed89ac93ec12e (diff)
downloadefi-boot-shim-344b9cbd0b92cacc8d4dcaf28a9d9e59fa3192da.tar.gz
efi-boot-shim-344b9cbd0b92cacc8d4dcaf28a9d9e59fa3192da.zip
Make lib/ use the right CFLAGS.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
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