From: Slava Barinov Date: Mon, 23 Jan 2017 10:00:37 +0000 (+0300) Subject: Add GCC_SEARCH_PATH to build with new GCC X-Git-Tag: accepted/tizen/4.0/unified/20170816.012210^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_4.0;p=platform%2Fupstream%2Fgummiboot.git 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 --- 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}