From 11d187acd52566af1d9ecec4f4059117be1474b9 Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Mon, 23 Jan 2017 13:00:37 +0300 Subject: [PATCH] Add GCC_SEARCH_PATH to build with new GCC stdint-gcc.h is located in GCC install dir in latest GCC versions and configure script of gummiboot won't require the directory. Change-Id: Id305b7c6b90571e47f61619256e750eb1ea145b4 Signed-off-by: Slava Barinov --- packaging/gummiboot.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packaging/gummiboot.spec b/packaging/gummiboot.spec index 47a2f0b..21f1710 100644 --- a/packaging/gummiboot.spec +++ b/packaging/gummiboot.spec @@ -28,9 +28,10 @@ project logo and maintained in the upstream gummiboot Git tree. %setup -q -n %{name}-%{version} %build +GCC_SEARCH_PATH=$(gcc -print-search-dirs | sed -ne '/install:/s/install: //p') cp %{SOURCE1001} . %reconfigure --with-efi-libdir=/usr/lib --with-efi-ldsdir=/usr/lib -make +%{__make} EFI_CPPFLAGS=-I$GCC_SEARCH_PATH/include %install rm -fr %{buildroot} -- 2.7.4