SHA256
1
0
forked from pool/ovmf

Accepting request 493267 from home:msmeissn:branches:Virtualization

- ovmf-pie.patch: add -fPIE to the Common build Makefile to 
  allow a global PIE build.

OBS-URL: https://build.opensuse.org/request/show/493267
OBS-URL: https://build.opensuse.org/package/show/Virtualization/ovmf?expand=0&rev=84
This commit is contained in:
Gary Ching-Pang Lin 2017-05-08 08:20:33 +00:00 committed by Git OBS Bridge
parent 00ea58ff08
commit 2613e0ecfe
3 changed files with 21 additions and 1 deletions

13
ovmf-pie.patch Normal file
View File

@ -0,0 +1,13 @@
Index: ovmf-2017+git1492060560.b6d11d7c46/BaseTools/Source/C/Makefiles/header.makefile
===================================================================
--- ovmf-2017+git1492060560.b6d11d7c46.orig/BaseTools/Source/C/Makefiles/header.makefile
+++ ovmf-2017+git1492060560.b6d11d7c46/BaseTools/Source/C/Makefiles/header.makefile
@@ -49,7 +49,7 @@ ifeq ($(DARWIN),Darwin)
# assume clang or clang compatible flags on OS X
BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib -c -g
else
-BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-unused-result -nostdlib -c -g
+BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-unused-result -nostdlib -c -g -fPIE
endif
BUILD_LFLAGS =
BUILD_CXXFLAGS = -Wno-unused-result

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat May 6 20:34:20 UTC 2017 - meissner@suse.com
- ovmf-pie.patch: add -fPIE to the Common build Makefile to
allow a global PIE build.
-------------------------------------------------------------------
Thu Apr 13 07:13:09 UTC 2017 - glin@suse.com

View File

@ -14,7 +14,6 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# needssslcertforbuild
%undefine _build_create_debug
@ -47,6 +46,7 @@ Source100: %{name}-rpmlintrc
Source101: gdb_uefi.py.in
Patch2: %{name}-embed-default-keys.patch
Patch3: %{name}-gdb-symbols.patch
Patch4: %{name}-pie.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: gcc
@ -160,6 +160,7 @@ rm -rf $PKG_TO_REMOVE
%patch2 -p1
%endif
%patch3 -p1
%patch4 -p1
# add openssl
pushd CryptoPkg/Library/OpensslLib