File ovmf-pie.patch of Package ovmf.19611

Index: edk2-edk2-stable201905/BaseTools/Source/C/Makefiles/header.makefile
===================================================================
--- edk2-edk2-stable201905.orig/BaseTools/Source/C/Makefiles/header.makefile
+++ edk2-edk2-stable201905/BaseTools/Source/C/Makefiles/header.makefile
@@ -75,7 +75,7 @@ else
 BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -fwrapv \
 -fno-delete-null-pointer-checks -Wall -Werror \
 -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict \
--Wno-unused-result -nostdlib -g
+-Wno-unused-result -nostdlib -g -fPIE
 endif
 BUILD_LFLAGS =
 BUILD_CXXFLAGS = -Wno-unused-result
openSUSE Build Service is sponsored by