coreboot-utils/no-pie.patch
Olaf Hering d0f499d0d5 Accepting request 504196 from home:alarrosa:branches:hardware
- Add do-explicit-fallthrough.patch to fix a build failure with gcc7
  with an implicit fallthrough over switch cases (only on TW)
- Add -fPIC to no-pie.patch and remove -fno-pic to build with gcc7

OBS-URL: https://build.opensuse.org/request/show/504196
OBS-URL: https://build.opensuse.org/package/show/hardware/coreboot-utils?expand=0&rev=26
2017-06-29 09:17:28 +00:00

16 lines
670 B
Diff

Index: coreboot-4.5/util/msrtool/Makefile.in
===================================================================
--- coreboot-4.5.orig/util/msrtool/Makefile.in
+++ coreboot-4.5/util/msrtool/Makefile.in
@@ -19,8 +19,8 @@ PROGRAM = msrtool
CC = @CC@
INSTALL = @INSTALL@
PREFIX = @PREFIX@
-CFLAGS = @CFLAGS@ -fno-pic
-LDFLAGS = @LDFLAGS@
+CFLAGS = @CFLAGS@ -fPIC -fno-PIE
+LDFLAGS = @LDFLAGS@ -fPIC -no-pie
TARGETS = geodegx2.o geodelx.o cs5536.o k8.o intel_pentium3_early.o intel_pentium3.o intel_pentium4_early.o intel_pentium4_later.o intel_core1.o intel_core2_early.o intel_core2_later.o intel_nehalem.o intel_atom.o
SYSTEMS = linux.o darwin.o freebsd.o