UPSTREAM: Makefile.inc: Explicitly disable PIE
Some distribution compilers enable Position Independent Executable (PIE) by default, causing a build failure. So explicitly disable PIE by passing the flag `-fno-pie`, to fix the build error. BUG=None BRANCH=None TEST=None Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Reviewed-on: https://review.coreboot.org/17097 Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com> Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com> Change-Id: I1b7d7168e34c5c93c25bc03ffa49b2eeac0e76f8 Reviewed-on: https://chromium-review.googlesource.com/404980 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
00652e729b
commit
597d57930a
1 changed files with 1 additions and 1 deletions
|
|
@ -356,7 +356,7 @@ CFLAGS_common += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototype
|
|||
CFLAGS_common += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
|
||||
CFLAGS_common += -Wstrict-aliasing -Wshadow -Wdate-time
|
||||
CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer
|
||||
CFLAGS_common += -ffunction-sections -fdata-sections
|
||||
CFLAGS_common += -ffunction-sections -fdata-sections -fno-pie
|
||||
|
||||
ADAFLAGS_common += -gnatg -gnatp
|
||||
ADAFLAGS_common += -Wuninitialized -Wall -Werror
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue